From e3d74c4647e2c8ac98307c865f81674c01dd0151 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Wed, 15 Jul 2026 00:11:27 +0100 Subject: [PATCH 01/11] Update name --- .claude-plugin/marketplace.json | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index d301097..1db7a49 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -1,5 +1,5 @@ { - "name": "makingchatbots-genesys-cloud-architect", + "name": "makingchatbots-genesys-cloud-plugins", "owner": { "name": "Lucas Woodward", "url": "https://makingchatbots.com/" diff --git a/README.md b/README.md index 0a4508b..1c9a8ba 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Create, debug and test Genesys Cloud Architect Flows using Claude Code. ``` # Add the marketplace -/plugin marketplace add MakingChatbots/genesys-cloud-architect +/plugin marketplace add MakingChatbots/genesys-cloud-plugins # Install the plugin /plugin install genesys-cloud-architect@makingchatbots From 211a42fe1a3b2568a22934ee34d23b8b71ab469e Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Wed, 15 Jul 2026 00:15:09 +0100 Subject: [PATCH 02/11] Update plugin command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c9a8ba..d75dd18 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Create, debug and test Genesys Cloud Architect Flows using Claude Code. /plugin marketplace add MakingChatbots/genesys-cloud-plugins # Install the plugin -/plugin install genesys-cloud-architect@makingchatbots +/plugin install genesys-cloud-architect@makingchatbots-genesys-cloud-plugins ``` ## Getting Started From 7817ae4801ad1af44c70abbed74043b13c497560 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Tue, 28 Jul 2026 23:08:43 +0100 Subject: [PATCH 03/11] Update skill --- skills/flow-diagram/SKILL.md | 120 +++---- skills/flow-diagram/assets/template.html | 166 ---------- .../examples/dependency-tree.html | 310 ------------------ skills/flow-diagram/references/patterns.md | 244 -------------- 4 files changed, 63 insertions(+), 777 deletions(-) delete mode 100644 skills/flow-diagram/assets/template.html delete mode 100644 skills/flow-diagram/examples/dependency-tree.html delete mode 100644 skills/flow-diagram/references/patterns.md diff --git a/skills/flow-diagram/SKILL.md b/skills/flow-diagram/SKILL.md index 77e8132..bf191fd 100644 --- a/skills/flow-diagram/SKILL.md +++ b/skills/flow-diagram/SKILL.md @@ -1,83 +1,89 @@ --- name: flow-diagram -description: This skill should be used when the user asks to create an interactive diagram, flowchart, flow visualization, dependency tree, architecture map, state machine, or pipeline view. Common trigger phrases include "visualize", "diagram", "flowchart", "graph", "map out", "show the flow", "draw the dependencies", "create a diagram", or any request where a visual representation of nodes and connections would communicate better than text. +description: This skill should be used when the user asks to create a diagram, flowchart, flow visualization, dependency tree, architecture map, state machine, or pipeline view — including when they ask for an interactive, explorable, or pan-and-zoom diagram (this skill produces static diagrams and sets that expectation). Common trigger phrases include "visualize", "diagram", "flowchart", "graph", "map out", "show the flow", "draw the dependencies", "create a diagram". --- # Flow Diagram Skill -Create interactive flow diagrams as standalone HTML files using React Flow (@xyflow/react). The diagrams are self-contained (no build step, no npm install), use a dark theme, and open directly in a browser. +Create flow diagrams as Mermaid — text-based with automatic layout. Mermaid is diffable, cheap to generate, and renders natively in GitHub markdown (READMEs, PR and issue descriptions), Claude artifacts, and most docs tooling. -## When to Use +For graphs with fewer than 3 nodes or no edges, prefer plain text (ASCII or a markdown table) — not worth a diagram. -Generate a React Flow diagram when: -- Displaying hierarchical relationships (dependency trees, org charts, call chains) -- Showing data/control flow between components (pipelines, workflows, request paths) -- Visualizing state machines or decision trees -- Mapping architecture (service dependencies, module relationships) -- Any scenario where a graph of connected nodes communicates better than a table or list +## Workflow -Prefer plain text (ASCII, markdown table) when the graph has fewer than 3 nodes or no edges. For large diagrams (30+ nodes), consider grouping related nodes into composite cards or splitting into multiple diagrams — browser rendering remains smooth up to ~100 nodes, but readability degrades well before that. +### 1. Pick the diagram type -## How to Create a Diagram +| Data | Mermaid type | +|---|---| +| Flows, pipelines, decision branches | `flowchart TD` (or `LR` for wide/shallow graphs) | +| State machines | `stateDiagram-v2` | +| Dependencies, architecture maps | `flowchart LR` with `subgraph` groupings | +| Sequences of calls between systems | `sequenceDiagram` | -### 1. Start from the template +### 2. Write the diagram -Copy `assets/template.html` to the target location. The template contains the tested import map, dark-theme CSS, and React Flow scaffolding. Do not modify the import map URLs or `?external` parameters — they are calibrated to avoid duplicate-React issues. +```mermaid +flowchart TD + Welcome["Welcome message"] --> Hours{"Business hours?"} + Hours -->|open| Queue["Route to Sales queue"] + Hours -->|closed| AfterHours["After-hours message"] + AfterHours --> Offer{"Leave a voicemail?"} + Offer -->|yes| Record["Record voicemail"] + Offer -->|no| Finish["End call"] + Queue --> Finish + Record --> Finish +``` -### 2. Define custom node types +Syntax gotchas: +- Quote any label containing parentheses, colons, or other punctuation: `A["Play message (after hours)"]` +- `end` (lowercase) is a reserved word in flowcharts — use a different node id like `Finish` +- Edge labels use pipes: `A -->|open| B` +- Colour node categories with `classDef` + `class`, e.g. `classDef queue fill:#1d4ed8,color:#fff` then `class Queue queue` -Create node components using `createElement` (aliased as `h`). Every node needs `Handle` components for connections. Consult `references/patterns.md` for ready-made node designs: -- **Card with sub-items** — for nodes with child lists (e.g., a flow listing its data actions) -- **Simple labeled node** — for minimal states or pipeline steps -- **Status node** — for nodes with a health/status indicator +### 3. Deliver it where it will actually render -Register node types in a `nodeTypes` object **outside the App component**. +Mermaid source is only a picture where something renders it. A fenced block printed into a Claude Code terminal shows as **raw source text, not a diagram** — so pick the delivery form from the destination: -### 3. Define data, nodes, and edges +| Destination | Deliver as | +|---|---| +| GitHub PR or issue description, README, a committed `.md` file | Fenced ` ```mermaid ` block — inline in the response for the user to paste, or written to the file | +| The user wants to look at the diagram now, in a Claude Code session ("show me", "let me see it") | A standalone HTML file they can open (section 5), or a published Artifact — never bare source in the terminal | +| Web or desktop chat, or docs tooling that renders Mermaid | Fenced ` ```mermaid ` block | -Build the `initialNodes` and `initialEdges` arrays from the data being visualized. +When delivering a file or Artifact, still show the Mermaid source inline if it is short — it is the reviewable, diffable form. -Each node needs: `id`, `type` (matching a key in `nodeTypes`), `position: { x, y }`, and `data` (props passed to the node component). +### 4. Nodes with internal detail -Each edge needs: `id`, `source` (node id), `target` (node id). Optional: `animated`, `label`, `type` (`'smoothstep'` for flowcharts, default bezier for trees). +When a node needs to show a list of sub-items (e.g., a flow listing the data actions it calls), use multi-line labels with `
` bullets, or group children in a `subgraph`: -### 4. Layout the nodes +```mermaid +flowchart LR + Main["Main IVR flow
• Lookup-Customer
• Check-Balance"] --> Bot["Billing bot
• Get-Invoice"] +``` -For manual layout strategies (trees, grids, multi-level), see `references/patterns.md` under "Layout Strategies". Use `fitView` on the ReactFlow component to auto-zoom. +### 5. Standalone HTML -### 5. Add title, legend, and type-specific CSS +To give the user something openable in a browser, wrap the diagram. The page background must match the Mermaid theme — a `dark` theme diagram on a default white page is washed out and low contrast: -Use the `.diagram-title` and `.legend` overlay classes from the template. Add type badge CSS using the accent color pattern from `references/patterns.md`. +```html + + + +
+flowchart TD
+    A["..."] --> B["..."]
+
+ + + +``` -### 6. Replace template placeholders +This wrapper needs internet access when opened (Mermaid loads from a CDN); the markdown form has no such dependency. -The template has `%%PLACEHOLDER%%` comments marking where to insert content: -- `%%TITLE%%` — page title -- `%%CUSTOM_STYLES%%` — type badge classes and additional CSS -- `%%NODE_TYPES%%` — custom node components and `nodeTypes` object -- `%%DATA%%` — the `initialNodes` and `initialEdges` arrays -- `%%LAYOUT%%` — (already part of data if positions are inline) -- `%%TITLE_OVERLAY%%` — title createElement call -- `%%LEGEND%%` — legend createElement call +## Limits -### 7. Open in browser - -The resulting HTML file opens directly in any modern browser. No server needed. - -## Key Constraints - -- **No JSX** — use `createElement` (aliased `h`). No Babel, no build step. -- **No additional CDN dependencies** — the import map in the template is sufficient. -- **`nodeTypes` must be defined outside components** — React Flow remounts nodes if the object identity changes per render. -- **Dark theme only** — the CSS is designed for the `#0f172a` background. Changing to light theme requires restyling all components. - -## Additional Resources - -### Reference Files -- **`references/patterns.md`** — Import map details, createElement syntax, layout strategies (tree/grid/multi-level), edge types, color palette, and ready-made node component patterns - -### Asset Files -- **`assets/template.html`** — Base HTML template with the working import map, dark-theme CSS, and React Flow scaffolding. Copy this as the starting point for every diagram. - -### Example Files -- **`examples/dependency-tree.html`** — Complete working diagram showing a Genesys Cloud Architect flow dependency tree with 3 nodes, custom card nodes with sub-item lists, animated edges, title overlay, and legend. Use as a reference for the expected end result. \ No newline at end of file +- Layout is automatic and cannot be hand-tuned. For dense graphs (30+ heavily cross-linked nodes), split into multiple diagrams or use `subgraph` groupings rather than fighting the layout. +- Output is static — no pan, zoom, or drag. If the user asks for an interactive or explorable diagram, say plainly that this skill produces static Mermaid diagrams, then offer a browser-viewable HTML file (section 5) and splitting a large graph into focused views. Do not build a bespoke interactive diagram instead. \ No newline at end of file diff --git a/skills/flow-diagram/assets/template.html b/skills/flow-diagram/assets/template.html deleted file mode 100644 index 6e6bbc7..0000000 --- a/skills/flow-diagram/assets/template.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - %%TITLE%% - - - - - - -
- - - - \ No newline at end of file diff --git a/skills/flow-diagram/examples/dependency-tree.html b/skills/flow-diagram/examples/dependency-tree.html deleted file mode 100644 index 2eb44ce..0000000 --- a/skills/flow-diagram/examples/dependency-tree.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - Flow Dependency Diagram - - - - - - -
- - - - diff --git a/skills/flow-diagram/references/patterns.md b/skills/flow-diagram/references/patterns.md deleted file mode 100644 index d3ac279..0000000 --- a/skills/flow-diagram/references/patterns.md +++ /dev/null @@ -1,244 +0,0 @@ -# React Flow Diagram Patterns - -## Import Map (Critical) - -The import map in the template uses esm.sh to load React and @xyflow/react without a build step. This exact pattern is tested and working — do not modify the URLs or query parameters. - -Key details: -- `?external=react,react-dom` on `@xyflow/react` prevents bundling a separate React copy, which would break hooks -- `"react/": "https://esm.sh/react@18.3.1/"` handles subpath imports like `react/jsx-runtime` -- The CSS is loaded from jsdelivr (not esm.sh) because esm.sh does not serve CSS files - -## createElement Pattern - -Since there is no build step, all components use `createElement` (aliased as `h`) instead of JSX: - -```js -import { createElement as h } from 'react'; - -// JSX equivalent:
Hello
-h('div', { className: 'card' }, h('span', null, 'Hello')) - -// JSX equivalent: -h(Handle, { type: 'target', position: Position.Top }) - -// Conditional rendering -condition ? h('div', null, 'Yes') : null - -// Mapping arrays (spread into parent's children) -h('div', null, ...items.map((item, i) => h('span', { key: i }, item))) -``` - -## Custom Node Types - -Every custom node must be defined as a component and registered in a `nodeTypes` object **outside the App component** (React Flow requirement — defining inside causes remounts): - -```js -function MyNode({ data }) { - return h('div', { className: 'node-card' }, - h(Handle, { type: 'target', position: Position.Top, style: { background: '#475569', width: 8, height: 8 } }), - h('div', { className: 'node-title' }, data.label), - h(Handle, { type: 'source', position: Position.Bottom, style: { background: '#475569', width: 8, height: 8 } }), - ); -} - -// MUST be outside the component -const nodeTypes = { myNode: MyNode }; -``` - -Nodes reference the type by key: `{ id: '1', type: 'myNode', position: { x: 0, y: 0 }, data: { label: 'Hello' } }`. - -## Layout Strategies - -### Manual Tree Layout - -For small trees (< 20 nodes), calculate positions directly: - -```js -const childCount = children.length; -const spacing = 300; -const totalWidth = (childCount - 1) * spacing; -const startX = -totalWidth / 2; - -const nodes = [ - { id: 'root', position: { x: 0, y: 0 }, ... }, - ...children.map((child, i) => ({ - id: child.id, - position: { x: startX + i * spacing, y: 320 }, - ... - })), -]; -``` - -### Multi-Level Tree Layout - -For deeper trees, assign y based on depth and x based on sibling index: - -```js -const LEVEL_HEIGHT = 300; -const SIBLING_SPACING = 280; - -function layoutTree(node, depth = 0, siblingIndex = 0, siblingCount = 1) { - const totalWidth = (siblingCount - 1) * SIBLING_SPACING; - return { - id: node.id, - position: { - x: -totalWidth / 2 + siblingIndex * SIBLING_SPACING, - y: depth * LEVEL_HEIGHT, - }, - ... - }; -} -``` - -### Grid Layout - -For flat collections (no hierarchy): - -```js -const COLS = 4; -const COL_WIDTH = 300; -const ROW_HEIGHT = 200; - -const nodes = items.map((item, i) => ({ - id: item.id, - position: { - x: (i % COLS) * COL_WIDTH, - y: Math.floor(i / COLS) * ROW_HEIGHT, - }, - ... -})); -``` - -## Edge Patterns - -### Basic directed edge - -```js -{ id: 'e1', source: 'a', target: 'b', animated: true, style: { stroke: '#475569', strokeWidth: 2 } } -``` - -### Labeled edge - -```js -{ id: 'e1', source: 'a', target: 'b', label: 'calls', labelStyle: { fill: '#94a3b8', fontSize: 11 }, labelBgStyle: { fill: '#1e293b' } } -``` - -### Edge types - -- `default` — bezier curve (best for trees) -- `smoothstep` — right-angled with rounded corners (best for flowcharts) -- `step` — right-angled sharp corners -- `straight` — direct line - -Set via `type` property: `{ id: 'e1', source: 'a', target: 'b', type: 'smoothstep' }`. - -## Color Palette (Dark Theme) - -| Purpose | Color | Usage | -|---------|-------|-------| -| Background | `#0f172a` | Page/canvas | -| Card bg | `#1e293b` | Node cards | -| Card border | `#334155` | Default border | -| Card border hover | `#475569` | Hover state | -| Primary text | `#f1f5f9` | Titles, names | -| Secondary text | `#cbd5e1` | List items | -| Muted text | `#64748b` | Labels, captions | -| Dim text | `#475569` | Disabled, empty states | -| Edge default | `#475569` | Connection lines | -| Edge animated | `#60a5fa` | Active connections | -| Blue accent | `#3b82f6` / `#60a5fa` | — | -| Purple accent | `#8b5cf6` / `#a78bfa` | — | -| Green accent | `#10b981` / `#34d399` | — | -| Amber accent | `#f59e0b` / `#fbbf24` | — | -| Red accent | `#ef4444` / `#f87171` | — | - -### Type badge CSS pattern - -```css -.type-example { - background: rgba(59, 130, 246, 0.15); - color: #60a5fa; - border: 1px solid rgba(59, 130, 246, 0.3); -} -``` - -Replace the RGB values with any accent color. The pattern is: 15% opacity background, full-brightness text, 30% opacity border. - -## Title and Legend - -### Title overlay - -```js -h('div', { className: 'diagram-title' }, - 'Main Title', - h('div', { className: 'subtitle' }, 'Subtitle text'), -) -``` - -### Legend overlay - -```js -h('div', { className: 'legend' }, - h('div', { className: 'legend-item' }, - h('div', { className: 'legend-dot', style: { background: '#3b82f6' } }), - 'Label', - ), - // ... more items -) -``` - -## Common Node Designs - -### Card with sub-items - -For nodes that have a list of children (e.g., a flow with data actions): - -```js -function CardWithList({ data }) { - return h('div', { className: 'node-card' }, - h(Handle, { type: 'target', position: Position.Top, style: { background: '#475569', width: 8, height: 8 } }), - h('div', { className: `type-badge ${data.badgeClass}` }, data.badgeLabel), - h('div', { className: 'node-title' }, data.label), - data.items.length > 0 - ? h('div', null, - h('div', { className: 'section-label' }, data.itemsLabel), - ...data.items.map((item, i) => - h('div', { key: i, className: 'list-item' }, item) - ) - ) - : h('div', { className: 'muted' }, `No ${data.itemsLabel.toLowerCase()}`), - h(Handle, { type: 'source', position: Position.Bottom, style: { background: '#475569', width: 8, height: 8 } }), - ); -} -``` - -### Simple labeled node - -For minimal nodes (state machine states, simple pipeline steps): - -```js -function SimpleNode({ data }) { - return h('div', { className: 'node-card', style: { textAlign: 'center', minWidth: 120 } }, - h(Handle, { type: 'target', position: Position.Top, style: { background: '#475569', width: 8, height: 8 } }), - h('div', { className: 'node-title', style: { marginBottom: 0 } }, data.label), - h(Handle, { type: 'source', position: Position.Bottom, style: { background: '#475569', width: 8, height: 8 } }), - ); -} -``` - -### Node with status indicator - -```js -function StatusNode({ data }) { - const statusColors = { healthy: '#10b981', warning: '#f59e0b', error: '#ef4444' }; - return h('div', { className: 'node-card' }, - h(Handle, { type: 'target', position: Position.Top, style: { background: '#475569', width: 8, height: 8 } }), - h('div', { style: { display: 'flex', alignItems: 'center', gap: 8 } }, - h('div', { style: { width: 8, height: 8, borderRadius: '50%', background: statusColors[data.status] || '#475569' } }), - h('div', { className: 'node-title', style: { marginBottom: 0 } }, data.label), - ), - h(Handle, { type: 'source', position: Position.Bottom, style: { background: '#475569', width: 8, height: 8 } }), - ); -} -``` \ No newline at end of file From 7b3dd9517e07a48524dd8561281bca2e29993c0c Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Sun, 2 Aug 2026 23:23:35 +0100 Subject: [PATCH 04/11] Add tool and skill --- .github/workflows/ci.yml | 10 +- .npmrc | 1 + docs/development.md | 7 + package.json | 6 +- pnpm-lock.yaml | 753 +++++++++++++++++++++++++ pnpm-workspace.yaml | 3 + servers/genesys-cloud-architect-mcp.js | 110 ++-- skills/interpret-flow-ir/SKILL.md | 157 ++++++ src/mcp-server/index.ts | 10 +- src/mcp-server/tools/flow-ir.ts | 154 +++++ 10 files changed, 1150 insertions(+), 61 deletions(-) create mode 100644 .npmrc create mode 100644 skills/interpret-flow-ir/SKILL.md create mode 100644 src/mcp-server/tools/flow-ir.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e832b4..3916b31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ on: permissions: contents: read + packages: read jobs: lint-and-build: @@ -17,14 +18,19 @@ jobs: with: node-version-file: .nvmrc cache: pnpm + registry-url: https://npm.pkg.github.com + scope: "@makingchatbots" - run: pnpm install --frozen-lockfile + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: pnpm run lint + - run: pnpm run test - run: pnpm run build - name: Smoke test MCP server env: PREVENT_LOGIN: "TRUE" - DEPLOY_SCRIPT_PATH: "DUMMY_VALUE", + DEPLOY_SCRIPT_PATH: "DUMMY_VALUE" GENESYS_REGION: "DUMMY_VALUE" GENESYS_CLIENT_ID: "DUMMY_VALUE" GENESYS_CLIENT_SECRET: "DUMMY_VALUE" - run: pnpm dlx @modelcontextprotocol/inspector --cli node servers/genesys-cloud-architect-mcp.js --method tools/list | grep -q '"tools"' + run: pnpm dlx @modelcontextprotocol/inspector --cli node servers/genesys-cloud-architect-mcp.js --method tools/list | grep -q '"flow_ir"' diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..14f9636 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@makingchatbots:registry=https://npm.pkg.github.com diff --git a/docs/development.md b/docs/development.md index 64cd4c3..ad2ba98 100644 --- a/docs/development.md +++ b/docs/development.md @@ -12,6 +12,13 @@ Debug the plugin: CLAUDE_PLUGIN_ROOT=$(pwd) claude --plugin-dir . --debug ``` +Run the tests: + +```shell +pnpm test +pnpm test:watch +``` + To aid in the development of the MCP server install the MCP Server Skill: ``` diff --git a/package.json b/package.json index a1002e5..7119ca2 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,8 @@ "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", + "test": "vitest run", + "test:watch": "vitest", "lint": "biome check", "lint:fix": "biome check --write", "format": "biome format --write", @@ -23,9 +25,11 @@ }, "devDependencies": { "@biomejs/biome": "2.4.15", + "@makingchatbots/genesys-cloud-architect-diagram-lib": "^1.1.0", "@types/node": "^25.8.0", "esbuild": "^0.25.0", "husky": "^9.1.7", - "typescript": "^5.8.0" + "typescript": "^5.8.0", + "vitest": "^4.1.10" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d17d786..c74c57e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@biomejs/biome': specifier: 2.4.15 version: 2.4.15 + '@makingchatbots/genesys-cloud-architect-diagram-lib': + specifier: ^1.1.0 + version: 1.1.0 '@types/node': specifier: ^25.8.0 version: 25.9.0 @@ -36,6 +39,9 @@ importers: typescript: specifier: ^5.8.0 version: 5.9.3 + vitest: + specifier: ^4.1.10 + version: 4.1.10(@types/node@25.9.0)(vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12)) packages: @@ -103,6 +109,15 @@ packages: '@dabh/diagnostics@2.0.8': resolution: {integrity: sha512-R4MSXTVnuMzGD7bzHdW2ZhhdPC/igELENcq5IjEverBvq5hn1SXCWcsi6eSsdWP0/Ur+SItRRjAktmdoX/8R/Q==} + '@emnapi/core@2.0.0-alpha.3': + resolution: {integrity: sha512-AZypUeJ/yByuxyS7BlSNRDOMLMlROYtjYdIAuBmJssVz1UJDSeYxLrdizhXCFYhedC5bqd/ASy8EuNXbVVXp9g==} + + '@emnapi/runtime@2.0.0-alpha.3': + resolution: {integrity: sha512-hFPAhMUjJD9BSyCANEISPOogeXC9Zo9ZQl7L6vKnaVsMkCtzznaW/naYypeyl0Gv5rYfWYsZbpixTMpjDJzQeA==} + + '@emnapi/wasi-threads@2.0.1': + resolution: {integrity: sha512-9DsSk+o5NBX0CCJT8s0EROGSGxjR/tKu6aBTaVyq+SjAEQH4XcdcRxPBRzsBLizTTJ49MJjF+jgu3qnO9GLQcQ==} + '@esbuild/aix-ppc64@0.25.12': resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} engines: {node: '>=18'} @@ -265,6 +280,13 @@ packages: peerDependencies: hono: ^4 + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@makingchatbots/genesys-cloud-architect-diagram-lib@1.1.0': + resolution: {integrity: sha512-81sCC5Zr/Zhj40JlTehe9FEKqp1w4C/73d5qq/xFHn0scvGDI6Ipb+gbLHF0+nFTy3JKsIDq4Momw9IlAwJ5RQ==, tarball: https://npm.pkg.github.com/download/@makingchatbots/genesys-cloud-architect-diagram-lib/1.1.0/88e1dfee54e903c6178d770e09baaf6e40d19e62} + engines: {node: '>=22.12'} + '@modelcontextprotocol/sdk@1.29.0': resolution: {integrity: sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ==} engines: {node: '>=18'} @@ -275,15 +297,166 @@ packages: '@cfworker/json-schema': optional: true + '@napi-rs/wasm-runtime@1.2.2': + resolution: {integrity: sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.3 + '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.3 + + '@oxc-project/types@0.142.0': + resolution: {integrity: sha512-7W+2q5AKQVU36fkaryontrHn3YDt1RyUYXatw9i5H8ocYe2sPKSFB6eS8WNPeRKiN1qAWWZUPm7gwFzJGrccqQ==} + + '@rolldown/binding-android-arm64@1.2.1': + resolution: {integrity: sha512-02hOeOSryYxVrOIphmLAsqnCJWxwlzFk+pEt/N/i6OgT3lShHO7xGCU5cpgchRDHboAEbSjzgGh+O/u1GswQmA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.2.1': + resolution: {integrity: sha512-fMsTOnN0OjFm3CyppWPitKnc8UlliVARUULW6cfU6AIqjdtgmSFWSk9vecHzZduv/yMWIHDlRhM1e8Iff9uAfA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.2.1': + resolution: {integrity: sha512-1wjKdz/XLGKHaTNHjQveQ/B23TKx4ItAqm1JbyVuvNPc4Ze0Fb48s49TAd/2zcplPl8okE/UbTgmlVfwT7eFeQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.2.1': + resolution: {integrity: sha512-Fa0jHR07E7YBN4vOEsbVf2briYNsuOowfLJaXULZM0ldMlaCaj2LJgLMbMe4iacRyZmvR8efFhgR9wKuGclQUg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.2.1': + resolution: {integrity: sha512-pzkgu1SSHGgRRyRZ4fbmSgmajbVt+epaLP99NDjFft69v/ypfTi6swBMiVdh2EkQ0OSnHE1lZDM7DRGkyAzUpA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.2.1': + resolution: {integrity: sha512-QI5SEDY8cbiYWHx0VO4vIc3UlS6a32vXHjU8Qy/17adEmZIPuByJg13UEvo9c/UCiUkdcVWY83C+b+JrwnNyUg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-arm64-musl@1.2.1': + resolution: {integrity: sha512-Sm41FyCeXqmYcERoYOCbGIL5hNfd8w9LQ7Y61Bev48HkcjaJqV/iiVOaiDxjVTRMS+QKrZmD8cfPt4uMVnvM+A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rolldown/binding-linux-ppc64-gnu@1.2.1': + resolution: {integrity: sha512-2x+WhXTGl9yJYPbltW/BSEPTVz9OIWQyER4N+gJEDWkkn904eRcBzELqh/Hf7K0w/ubGbKNMv0ZC+94QK/IFEg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-s390x-gnu@1.2.1': + resolution: {integrity: sha512-eEjmQpuRQayHPWWnywaWHkFT3ToPbP3RYy42VVd/B9aBGDA+Ol25EIWHxKQST3IiWJjikCWUF7KtbfqwZrzVwQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-gnu@1.2.1': + resolution: {integrity: sha512-/Orga1fZYkLc/56jBICcHrKchl8Z2UKdDSr3LG9ToWO1lQ6a4Livk9Xz+9WN91zsz5QR3XQz2NNoSDEvP6qadw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rolldown/binding-linux-x64-musl@1.2.1': + resolution: {integrity: sha512-xxBJRL+0q0Kce7orznGWLuylHDY65vuARXZRpX+hPdv+DqK2c3NlCsVA98tlWzWNEE7yPqA/1NQ5nnCrj49Y5A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rolldown/binding-openharmony-arm64@1.2.1': + resolution: {integrity: sha512-M6AdXIXw3s+/8XpKMzdGDEXGS1S7kwUsy+rcTIUIOx5Ge4nXKCtAFHFV9YKkXvGcC5WMoTjAteLzlsQROVI0Yw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.2.1': + resolution: {integrity: sha512-/TX0SoRGojHzSAHpfVBbavRVSazg5U3h3Y3VXfcc0cdugq6kxdqw8LPGFiPr+/7gE/60zRcsOY2Vi9b9eT0jww==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + + '@rolldown/binding-win32-arm64-msvc@1.2.1': + resolution: {integrity: sha512-EvRrivJieyHG+AO9lleZWgq+g0+S7oV2C51yuqlcyU/R9net+sI4Pj0F+lUoP2bEr6TWX3SqFaaS0SzfLxSzkw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.2.1': + resolution: {integrity: sha512-Z4eCmn5QJ/5+azF9knpLWKfVd9aidn0mAe9TpJgvBLId9Ax3t0+JVxBmT25Bv7NBbVW1TZyKjQjQReouMeH5UQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.0.1': + resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} + '@so-ric/colorspace@1.1.6': resolution: {integrity: sha512-/KiKkpHNOBgkFJwu9sh48LkHSMYGyuTcSFK/qMBdnOAlrRJzRSXAOFB5qwzaVQuDl8wAvHVMkaASQDReTahxuw==} + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@tybys/wasm-util@0.10.3': + resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} + + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + '@types/node@25.9.0': resolution: {integrity: sha512-AOQwYUNolgy3VosiRqXrACUXTN8nJUtPl7FJXMqZVyxiiCLhQuG3jXKvCS1ALr+Y2OmZhzzLVlYPEqJaiqkaJQ==} '@types/triple-beam@1.3.5': resolution: {integrity: sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==} + '@vitest/expect@4.1.10': + resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==} + + '@vitest/mocker@4.1.10': + resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==} + peerDependencies: + msw: ^2.4.9 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@4.1.10': + resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==} + + '@vitest/runner@4.1.10': + resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==} + + '@vitest/snapshot@4.1.10': + resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==} + + '@vitest/spy@4.1.10': + resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==} + + '@vitest/utils@4.1.10': + resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==} + accepts@2.0.0: resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} engines: {node: '>= 0.6'} @@ -303,6 +476,10 @@ packages: ajv@8.20.0: resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + async@3.2.6: resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} @@ -328,6 +505,10 @@ packages: resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} engines: {node: '>= 0.4'} + chai@6.2.2: + resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} + engines: {node: '>=18'} + color-convert@3.1.3: resolution: {integrity: sha512-fasDH2ont2GqF5HpyO4w0+BcewlhHEZOFn9c1ckZdHpJ56Qb7MHhH/IcJZbBGgvdtwdwNbLvxiBEdg336iA9Sg==} engines: {node: '>=14.6'} @@ -363,6 +544,9 @@ packages: resolution: {integrity: sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==} engines: {node: '>=18'} + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + cookie-signature@1.2.2: resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} engines: {node: '>=6.6.0'} @@ -396,6 +580,10 @@ packages: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + dunder-proto@1.0.1: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} @@ -418,6 +606,9 @@ packages: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} + es-module-lexer@2.3.1: + resolution: {integrity: sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA==} + es-object-atoms@1.1.1: resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} engines: {node: '>= 0.4'} @@ -434,6 +625,9 @@ packages: escape-html@1.0.3: resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + etag@1.8.1: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} @@ -446,6 +640,10 @@ packages: resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==} engines: {node: '>=18.0.0'} + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + express-rate-limit@8.5.2: resolution: {integrity: sha512-5Kb34ipNX694DH48vN9irak1Qx30nb0PLYHXfJgw4YEjiC3ZEmZJhwOp+VfiCYwFzvFTdB9QkArYS5kXa2cx2A==} engines: {node: '>= 16'} @@ -462,6 +660,15 @@ packages: fast-uri@3.1.2: resolution: {integrity: sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==} + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + fecha@4.2.3: resolution: {integrity: sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==} @@ -493,6 +700,11 @@ packages: resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} engines: {node: '>= 0.8'} + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} @@ -574,10 +786,87 @@ packages: kuler@2.0.0: resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==} + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + logform@2.7.0: resolution: {integrity: sha512-TFYA4jnP7PVbmlBIfhlSe+WKxs9dklXMTEGcBCIvLhE/Tn3H6Gk1norupVW7m5Cnd4bLcr08AytbyV/xj7f/kQ==} engines: {node: '>= 12.0.0'} + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} engines: {node: '>= 0.4'} @@ -616,6 +905,11 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + nanoid@3.3.16: + resolution: {integrity: sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + negotiator@1.0.0: resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} engines: {node: '>= 0.6'} @@ -628,6 +922,10 @@ packages: resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} engines: {node: '>= 0.4'} + obug@2.1.4: + resolution: {integrity: sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==} + engines: {node: '>=12.20.0'} + on-finished@2.4.1: resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} engines: {node: '>= 0.8'} @@ -649,10 +947,24 @@ packages: path-to-regexp@8.4.2: resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.5: + resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} + engines: {node: '>=12'} + pkce-challenge@5.0.1: resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} engines: {node: '>=16.20.0'} + postcss@8.5.25: + resolution: {integrity: sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==} + engines: {node: ^10 || ^12 || >=14} + proxy-addr@2.0.7: resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} engines: {node: '>= 0.10'} @@ -688,6 +1000,11 @@ packages: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} + rolldown@1.2.1: + resolution: {integrity: sha512-4FKJhg8d3OiyQOA6Q1Q0hoFFpW9/OoX+VsHzpECsdsIZoOArrAK90gl59YK/Z+gnDel45bgJZK03ozH/9bCqEw==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + router@2.2.0: resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} engines: {node: '>= 18'} @@ -737,19 +1054,47 @@ packages: resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} engines: {node: '>= 0.4'} + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + stack-trace@0.0.10: resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==} + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + statuses@2.0.2: resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} engines: {node: '>= 0.8'} + std-env@4.2.0: + resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==} + string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} text-hex@1.0.0: resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==} + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@1.2.4: + resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==} + engines: {node: '>=18'} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + tinyrainbow@3.1.1: + resolution: {integrity: sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==} + engines: {node: '>=14.0.0'} + toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} @@ -758,6 +1103,9 @@ packages: resolution: {integrity: sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==} engines: {node: '>= 14.0.0'} + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + type-is@2.1.0: resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} engines: {node: '>= 18'} @@ -781,11 +1129,100 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + vite@8.2.0: + resolution: {integrity: sha512-pn+CFpM0lwDeKwmOq1ZaBK/9sjorZcgqxki6MbY/jPEVd9vichIlmlD4HmQ5wdP5EgqQCFRaACBxMC7uEGc6lQ==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.4.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitest@4.1.10: + resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@opentelemetry/api': ^1.9.0 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.10 + '@vitest/browser-preview': 4.1.10 + '@vitest/browser-webdriverio': 4.1.10 + '@vitest/coverage-istanbul': 4.1.10 + '@vitest/coverage-v8': 4.1.10 + '@vitest/ui': 4.1.10 + happy-dom: '*' + jsdom: '*' + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@opentelemetry/api': + optional: true + '@types/node': + optional: true + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} hasBin: true + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + winston-transport@4.9.0: resolution: {integrity: sha512-8drMJ4rkgaPo1Me4zD/3WLfI/zPdA9o2IipKODunnGDcuqbHwjsbB79ylv04LCGGzU0xQ6vTznOMpQGaLhhm6A==} engines: {node: '>= 12.0.0'} @@ -862,6 +1299,22 @@ snapshots: enabled: 2.0.0 kuler: 2.0.0 + '@emnapi/core@2.0.0-alpha.3': + dependencies: + '@emnapi/wasi-threads': 2.0.1 + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@2.0.0-alpha.3': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/wasi-threads@2.0.1': + dependencies: + tslib: 2.8.1 + optional: true + '@esbuild/aix-ppc64@0.25.12': optional: true @@ -944,6 +1397,10 @@ snapshots: dependencies: hono: 4.12.19 + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@makingchatbots/genesys-cloud-architect-diagram-lib@1.1.0': {} + '@modelcontextprotocol/sdk@1.29.0(zod@4.4.3)': dependencies: '@hono/node-server': 1.19.14(hono@4.12.19) @@ -966,17 +1423,134 @@ snapshots: transitivePeerDependencies: - supports-color + '@napi-rs/wasm-runtime@1.2.2(@emnapi/core@2.0.0-alpha.3)(@emnapi/runtime@2.0.0-alpha.3)': + dependencies: + '@emnapi/core': 2.0.0-alpha.3 + '@emnapi/runtime': 2.0.0-alpha.3 + '@tybys/wasm-util': 0.10.3 + optional: true + + '@oxc-project/types@0.142.0': {} + + '@rolldown/binding-android-arm64@1.2.1': + optional: true + + '@rolldown/binding-darwin-arm64@1.2.1': + optional: true + + '@rolldown/binding-darwin-x64@1.2.1': + optional: true + + '@rolldown/binding-freebsd-x64@1.2.1': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.2.1': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.2.1': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.2.1': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.2.1': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.2.1': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.2.1': + optional: true + + '@rolldown/binding-linux-x64-musl@1.2.1': + optional: true + + '@rolldown/binding-openharmony-arm64@1.2.1': + optional: true + + '@rolldown/binding-wasm32-wasi@1.2.1': + dependencies: + '@emnapi/core': 2.0.0-alpha.3 + '@emnapi/runtime': 2.0.0-alpha.3 + '@napi-rs/wasm-runtime': 1.2.2(@emnapi/core@2.0.0-alpha.3)(@emnapi/runtime@2.0.0-alpha.3) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.2.1': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.2.1': + optional: true + + '@rolldown/pluginutils@1.0.1': {} + '@so-ric/colorspace@1.1.6': dependencies: color: 5.0.3 text-hex: 1.0.0 + '@standard-schema/spec@1.1.0': {} + + '@tybys/wasm-util@0.10.3': + dependencies: + tslib: 2.8.1 + optional: true + + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + + '@types/deep-eql@4.0.2': {} + + '@types/estree@1.0.9': {} + '@types/node@25.9.0': dependencies: undici-types: 7.24.6 '@types/triple-beam@1.3.5': {} + '@vitest/expect@4.1.10': + dependencies: + '@standard-schema/spec': 1.1.0 + '@types/chai': 5.2.3 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 + chai: 6.2.2 + tinyrainbow: 3.1.1 + + '@vitest/mocker@4.1.10(vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12))': + dependencies: + '@vitest/spy': 4.1.10 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 8.2.0(@types/node@25.9.0)(esbuild@0.25.12) + + '@vitest/pretty-format@4.1.10': + dependencies: + tinyrainbow: 3.1.1 + + '@vitest/runner@4.1.10': + dependencies: + '@vitest/utils': 4.1.10 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.10': + dependencies: + '@vitest/pretty-format': 4.1.10 + '@vitest/utils': 4.1.10 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@4.1.10': {} + + '@vitest/utils@4.1.10': + dependencies: + '@vitest/pretty-format': 4.1.10 + convert-source-map: 2.0.0 + tinyrainbow: 3.1.1 + accepts@2.0.0: dependencies: mime-types: 3.0.2 @@ -999,6 +1573,8 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 + assertion-error@2.0.1: {} + async@3.2.6: {} asynckit@0.4.0: {} @@ -1039,6 +1615,8 @@ snapshots: call-bind-apply-helpers: 1.0.2 get-intrinsic: 1.3.0 + chai@6.2.2: {} + color-convert@3.1.3: dependencies: color-name: 2.1.0 @@ -1068,6 +1646,8 @@ snapshots: content-type@2.0.0: {} + convert-source-map@2.0.0: {} + cookie-signature@1.2.2: {} cookie@0.7.2: {} @@ -1091,6 +1671,8 @@ snapshots: depd@2.0.0: {} + detect-libc@2.1.2: {} + dunder-proto@1.0.1: dependencies: call-bind-apply-helpers: 1.0.2 @@ -1107,6 +1689,8 @@ snapshots: es-errors@1.3.0: {} + es-module-lexer@2.3.1: {} + es-object-atoms@1.1.1: dependencies: es-errors: 1.3.0 @@ -1149,6 +1733,10 @@ snapshots: escape-html@1.0.3: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.9 + etag@1.8.1: {} eventsource-parser@3.0.8: {} @@ -1157,6 +1745,8 @@ snapshots: dependencies: eventsource-parser: 3.0.8 + expect-type@1.4.0: {} + express-rate-limit@8.5.2(express@5.2.1): dependencies: express: 5.2.1 @@ -1199,6 +1789,10 @@ snapshots: fast-uri@3.1.2: {} + fdir@6.5.0(picomatch@4.0.5): + optionalDependencies: + picomatch: 4.0.5 + fecha@4.2.3: {} finalhandler@2.1.1: @@ -1228,6 +1822,9 @@ snapshots: fresh@2.0.0: {} + fsevents@2.3.3: + optional: true + function-bind@1.1.2: {} get-intrinsic@1.3.0: @@ -1303,6 +1900,55 @@ snapshots: kuler@2.0.0: {} + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + logform@2.7.0: dependencies: '@colors/colors': 1.6.0 @@ -1312,6 +1958,10 @@ snapshots: safe-stable-stringify: 2.5.0 triple-beam: 1.4.1 + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + math-intrinsics@1.1.0: {} media-typer@1.1.0: {} @@ -1338,12 +1988,16 @@ snapshots: ms@2.1.3: {} + nanoid@3.3.16: {} + negotiator@1.0.0: {} object-assign@4.1.1: {} object-inspect@1.13.4: {} + obug@2.1.4: {} + on-finished@2.4.1: dependencies: ee-first: 1.1.1 @@ -1362,8 +2016,20 @@ snapshots: path-to-regexp@8.4.2: {} + pathe@2.0.3: {} + + picocolors@1.1.1: {} + + picomatch@4.0.5: {} + pkce-challenge@5.0.1: {} + postcss@8.5.25: + dependencies: + nanoid: 3.3.16 + picocolors: 1.1.1 + source-map-js: 1.2.1 + proxy-addr@2.0.7: dependencies: forwarded: 0.2.0 @@ -1409,6 +2075,27 @@ snapshots: require-from-string@2.0.2: {} + rolldown@1.2.1: + dependencies: + '@oxc-project/types': 0.142.0 + '@rolldown/pluginutils': 1.0.1 + optionalDependencies: + '@rolldown/binding-android-arm64': 1.2.1 + '@rolldown/binding-darwin-arm64': 1.2.1 + '@rolldown/binding-darwin-x64': 1.2.1 + '@rolldown/binding-freebsd-x64': 1.2.1 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.1 + '@rolldown/binding-linux-arm64-gnu': 1.2.1 + '@rolldown/binding-linux-arm64-musl': 1.2.1 + '@rolldown/binding-linux-ppc64-gnu': 1.2.1 + '@rolldown/binding-linux-s390x-gnu': 1.2.1 + '@rolldown/binding-linux-x64-gnu': 1.2.1 + '@rolldown/binding-linux-x64-musl': 1.2.1 + '@rolldown/binding-openharmony-arm64': 1.2.1 + '@rolldown/binding-wasm32-wasi': 1.2.1 + '@rolldown/binding-win32-arm64-msvc': 1.2.1 + '@rolldown/binding-win32-x64-msvc': 1.2.1 + router@2.2.0: dependencies: debug: 4.4.3 @@ -1486,20 +2173,42 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 + siginfo@2.0.0: {} + + source-map-js@1.2.1: {} + stack-trace@0.0.10: {} + stackback@0.0.2: {} + statuses@2.0.2: {} + std-env@4.2.0: {} + string_decoder@1.3.0: dependencies: safe-buffer: 5.2.1 text-hex@1.0.0: {} + tinybench@2.9.0: {} + + tinyexec@1.2.4: {} + + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.5) + picomatch: 4.0.5 + + tinyrainbow@3.1.1: {} + toidentifier@1.0.1: {} triple-beam@1.4.1: {} + tslib@2.8.1: + optional: true + type-is@2.1.0: dependencies: content-type: 2.0.0 @@ -1516,10 +2225,54 @@ snapshots: vary@1.1.2: {} + vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12): + dependencies: + lightningcss: 1.33.0 + picomatch: 4.0.5 + postcss: 8.5.25 + rolldown: 1.2.1 + tinyglobby: 0.2.17 + optionalDependencies: + '@types/node': 25.9.0 + esbuild: 0.25.12 + fsevents: 2.3.3 + + vitest@4.1.10(@types/node@25.9.0)(vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12)): + dependencies: + '@vitest/expect': 4.1.10 + '@vitest/mocker': 4.1.10(vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12)) + '@vitest/pretty-format': 4.1.10 + '@vitest/runner': 4.1.10 + '@vitest/snapshot': 4.1.10 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 + es-module-lexer: 2.3.1 + expect-type: 1.4.0 + magic-string: 0.30.21 + obug: 2.1.4 + pathe: 2.0.3 + picomatch: 4.0.5 + std-env: 4.2.0 + tinybench: 2.9.0 + tinyexec: 1.2.4 + tinyglobby: 0.2.17 + tinyrainbow: 3.1.1 + vite: 8.2.0(@types/node@25.9.0)(esbuild@0.25.12) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 25.9.0 + transitivePeerDependencies: + - msw + which@2.0.2: dependencies: isexe: 2.0.0 + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + winston-transport@4.9.0: dependencies: logform: 2.7.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index ef41e24..cd2427b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,3 +2,6 @@ lockfile: true allowBuilds: esbuild: true + +minimumReleaseAgeExclude: + - '@makingchatbots/genesys-cloud-architect-diagram-lib@1.1.0' diff --git a/servers/genesys-cloud-architect-mcp.js b/servers/genesys-cloud-architect-mcp.js index cee5099..319f46e 100644 --- a/servers/genesys-cloud-architect-mcp.js +++ b/servers/genesys-cloud-architect-mcp.js @@ -1,81 +1,81 @@ -"use strict";var AI=Object.create;var gd=Object.defineProperty;var bI=Object.getOwnPropertyDescriptor;var yI=Object.getOwnPropertyNames;var PI=Object.getPrototypeOf,jI=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),md=(t,e)=>{for(var i in e)gd(t,i,{get:e[i],enumerable:!0})},SI=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of yI(e))!jI.call(t,a)&&a!==i&&gd(t,a,{get:()=>e[a],enumerable:!(n=bI(e,a))||n.enumerable});return t};var er=(t,e,i)=>(i=t!=null?AI(PI(t)):{},SI(e||!t||!t.__esModule?gd(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 Ca=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=Ca;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 Ca&&(i[n.str]=(i[n.str]||0)+1),i),{})}};Pe._Code=pn;Pe.nil=new pn("");function iO(t,...e){let i=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.ValueScope=Ui.ValueScopeName=Ui.Scope=Ui.varKinds=Ui.UsedValueState=void 0;var Ni=Ys(),fm=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||(Ui.UsedValueState=Ru={}));Ui.varKinds={const:new Ni.Name("const"),let:new Ni.Name("let"),var:new Ni.Name("var")};var Iu=class{constructor({prefixes:e,parent:i}={}){this._names={},this._prefixes=e,this._parent=i}toName(e){return e instanceof Ni.Name?e:this.name(e)}name(e){return new Ni.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}}};Ui.Scope=Iu;var zu=class extends Ni.Name{constructor(e,i){super(i),this.prefix=e}setValue(e,{property:i,itemIndex:n}){this.value=e,this.scopePath=(0,Ni._)`.${new Ni.Name(i)}[${n}]`}};Ui.ValueScopeName=zu;var U$=(0,Ni._)`\n`,wm=class extends Iu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?U$:Ni.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,Ni._)`${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=Ni.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?Ui.varKinds.var:Ui.varKinds.const;r=(0,Ni._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,Ni._)`${r}${c}${this.opts._n}`;else throw new fm(u);l.set(u,Ru.Completed)})}return r}};Ui.ValueScope=wm});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=vm(),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=vm();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}},Cm=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)}},Am=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}},bm=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},ym=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Pm=class extends at{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},jm=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)||(L$(e,r.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,i)=>ya(e,i.names),{})}},rt=class extends Xs{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Sm=class extends Xs{},br=class extends rt{};br.kind="else";var Aa=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(tO(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&&ya(e,this.else.names),e}};Aa.kind="if";var ba=class extends rt{};ba.kind="for";var Om=class extends ba{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 ya(super.names,this.iteration.names)}},xm=class extends ba{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 ba{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 ya(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 Tm=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&&ya(e,this.catch.names),this.finally&&ya(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 Mm=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 Sm]}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 Cm(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 Am(e,oe.operators.ADD,i))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new jm(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 Aa(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 Aa(e))}else(){return this._elseNode(new br)}endIf(){return this._endBlockNode(Aa,br)}_for(e,i){return this._blockNode(e),i&&this.code(i).endFor(),this}for(e,i){return this._for(new Om(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 xm(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(ba)}label(e){return this._leafNode(new bm(e))}break(e){return this._leafNode(new ym(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 Tm;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 Pm(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 Aa))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=Mm;function ya(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?ya(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 L$(t,e){for(let i in e)t[i]=(t[i]||0)-(e[i]||0)}function tO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${Em(t)}`}oe.not=tO;var W$=aO(oe.operators.AND);function B$(...t){return t.reduce(W$)}oe.and=B$;var F$=aO(oe.operators.OR);function V$(...t){return t.reduce(F$)}oe.or=V$;function aO(t){return(e,i)=>e===fe.nil?i:i===fe.nil?e:(0,fe._)`${Em(e)} ${t} ${Em(i)}`}function Em(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(),J$=Ys();function Z$(t){let e={};for(let i of t)e[i]=!0;return e}le.toHash=Z$;function K$(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(oO(t,e),!lO(e,t.self.RULES.all))}le.alwaysValidSchema=K$;function oO(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]||pO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=oO;function lO(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(e[i])return!0;return!1}le.schemaHasRules=lO;function Q$(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=Q$;function Y$({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=Y$;function X$(t){return uO(decodeURIComponent(t))}le.unescapeFragment=X$;function eN(t){return encodeURIComponent(qm(t))}le.escapeFragment=eN;function qm(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=qm;function uO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=uO;function iN(t,e){if(Array.isArray(t))for(let i of t)e(i);else e(t)}le.eachItem=iN;function rO({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:rO({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} || {}`),_m(t,i,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:cO}),items:rO({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 cO(t,e){if(e===!0)return t.var("props",!0);let i=t.var("props",(0,_e._)`{}`);return e!==void 0&&_m(t,i,e),i}le.evaluatedPropsToName=cO;function _m(t,e,i){Object.keys(i).forEach(n=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(n)}`,!0))}le.setEvaluated=_m;var sO={};function nN(t,e){return t.scopeValue("func",{ref:e,code:sO[e.code]||(sO[e.code]=new J$._Code(e.code))})}le.useFunc=nN;var km;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(km||(le.Type=km={}));function tN(t,e,i){if(t instanceof _e.Name){let n=e===km.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():"/"+qm(t)}le.getErrorPath=tN;function pO(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=pO});var st=w(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var Mi=re(),aN={data:new Mi.Name("data"),valCxt:new Mi.Name("valCxt"),instancePath:new Mi.Name("instancePath"),parentData:new Mi.Name("parentData"),parentDataProperty:new Mi.Name("parentDataProperty"),rootData:new Mi.Name("rootData"),dynamicAnchors:new Mi.Name("dynamicAnchors"),vErrors:new Mi.Name("vErrors"),errors:new Mi.Name("errors"),this:new Mi.Name("this"),self:new Mi.Name("self"),scope:new Mi.Name("scope"),json:new Mi.Name("json"),jsonPos:new Mi.Name("jsonPos"),jsonLen:new Mi.Name("jsonLen"),jsonPart:new Mi.Name("jsonPart")};Hm.default=aN});var ao=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.extendErrors=Ei.resetErrorsCount=Ei.reportExtraError=Ei.reportError=Ei.keyword$DataError=Ei.keywordError=void 0;var ve=re(),Uu=we(),Ri=st();Ei.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};Ei.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 rN(t,e=Ei.keywordError,i,n){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=gO(t,e,i);n??(s||o)?dO(r,l):hO(a,(0,ve._)`[${l}]`)}Ei.reportError=rN;function sN(t,e=Ei.keywordError,i){let{it:n}=t,{gen:a,compositeRule:r,allErrors:s}=n,o=gO(t,e,i);dO(a,o),r||s||hO(n,Ri.default.vErrors)}Ei.reportExtraError=sN;function oN(t,e){t.assign(Ri.default.errors,e),t.if((0,ve._)`${Ri.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Ri.default.vErrors}.length`,e),()=>t.assign(Ri.default.vErrors,null)))}Ei.resetErrorsCount=oN;function lN({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,Ri.default.errors,o=>{t.const(s,(0,ve._)`${Ri.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Ri.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))})}Ei.extendErrors=lN;function dO(t,e){let i=t.const("err",e);t.if((0,ve._)`${Ri.default.vErrors} === null`,()=>t.assign(Ri.default.vErrors,(0,ve._)`[${i}]`),(0,ve._)`${Ri.default.vErrors}.push(${i})`),t.code((0,ve._)`${Ri.default.errors}++`)}function hO(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 Pa={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 gO(t,e,i){let{createErrors:n}=t.it;return n===!1?(0,ve._)`{}`:uN(t,e,i)}function uN(t,e,i={}){let{gen:n,it:a}=t,r=[cN(a,i),pN(t,i)];return dN(t,e,r),n.object(...r)}function cN({errorPath:t},{instancePath:e}){let i=e?(0,ve.str)`${t}${(0,Uu.getErrorPath)(e,Uu.Type.Str)}`:t;return[Ri.default.instancePath,(0,ve.strConcat)(Ri.default.instancePath,i)]}function pN({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)}`),[Pa.schemaPath,a]}function dN(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([Pa.keyword,a],[Pa.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&n.push([Pa.message,typeof i=="function"?i(t):i]),l.verbose&&n.push([Pa.schema,s],[Pa.parentSchema,(0,ve._)`${c}${p}`],[Ri.default.data,r]),u&&n.push([Pa.propertyName,u])}});var fO=w(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.boolOrEmptySchema=Pr.topBoolOrEmptySchema=void 0;var hN=ao(),gN=re(),mN=st(),fN={message:"boolean schema is false"};function wN(t){let{gen:e,schema:i,validateName:n}=t;i===!1?mO(t,!1):typeof i=="object"&&i.$async===!0?e.return(mN.default.data):(e.assign((0,gN._)`${n}.errors`,null),e.return(!0))}Pr.topBoolOrEmptySchema=wN;function vN(t,e){let{gen:i,schema:n}=t;n===!1?(i.var(e,!1),mO(t)):i.var(e,!0)}Pr.boolOrEmptySchema=vN;function mO(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,hN.reportError)(a,fN,void 0,e)}});var Rm=w(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.getRules=jr.isJSONType=void 0;var CN=["string","number","integer","boolean","null","object","array"],AN=new Set(CN);function bN(t){return typeof t=="string"&&AN.has(t)}jr.isJSONType=bN;function yN(){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=yN});var Im=w(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.shouldUseRule=Tt.shouldUseGroup=Tt.schemaHasRulesForType=void 0;function PN({schema:t,self:e},i){let n=e.RULES.types[i];return n&&n!==!0&&wO(t,n)}Tt.schemaHasRulesForType=PN;function wO(t,e){return e.rules.some(i=>vO(t,i))}Tt.shouldUseGroup=wO;function vO(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=vO});var ro=w(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.reportTypeError=ki.checkDataTypes=ki.checkDataType=ki.coerceAndCheckDataType=ki.getJSONTypes=ki.getSchemaTypes=ki.DataType=void 0;var jN=Rm(),SN=Im(),ON=ao(),te=re(),CO=we(),Sr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Sr||(ki.DataType=Sr={}));function xN(t){let e=AO(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}ki.getSchemaTypes=xN;function AO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(jN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}ki.getJSONTypes=AO;function TN(t,e){let{gen:i,data:n,opts:a}=t,r=MN(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,SN.schemaHasRulesForType)(t,e[0]));if(s){let o=Dm(e,n,a.strictNumbers,Sr.Wrong);i.if(o,()=>{r.length?EN(t,e,r):Gm(t)})}return s}ki.coerceAndCheckDataType=TN;var bO=new Set(["string","number","integer","boolean","null"]);function MN(t,e){return e?t.filter(i=>bO.has(i)||e==="array"&&i==="array"):[]}function EN(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(Dm(e,a,r.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(let u of i)(bO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);n.else(),Gm(t),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),kN(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 GR=Object.create;var Ad=Object.defineProperty;var $R=Object.getOwnPropertyDescriptor;var NR=Object.getOwnPropertyNames;var UR=Object.getPrototypeOf,LR=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bd=(t,e)=>{for(var i in e)Ad(t,i,{get:e[i],enumerable:!0})},WR=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of NR(e))!LR.call(t,a)&&a!==i&&Ad(t,a,{get:()=>e[a],enumerable:!(n=$R(e,a))||n.enumerable});return t};var nr=(t,e,i)=>(i=t!=null?GR(UR(t)):{},WR(e||!t||!t.__esModule?Ad(i,"default",{value:t,enumerable:!0}):i,t));var io=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 Xs=class{};Pe._CodeOrName=Xs;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ba=class extends Xs{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=ba;var pn=class extends Xs{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 ba&&(i[n.str]=(i[n.str]||0)+1),i),{})}};Pe._Code=pn;Pe.nil=new pn("");function pO(t,...e){let i=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.ValueScope=Ui.ValueScopeName=Ui.Scope=Ui.varKinds=Ui.UsedValueState=void 0;var Ni=io(),ym=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Uu;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Uu||(Ui.UsedValueState=Uu={}));Ui.varKinds={const:new Ni.Name("const"),let:new Ni.Name("let"),var:new Ni.Name("var")};var Lu=class{constructor({prefixes:e,parent:i}={}){this._names={},this._prefixes=e,this._parent=i}toName(e){return e instanceof Ni.Name?e:this.name(e)}name(e){return new Ni.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}}};Ui.Scope=Lu;var Wu=class extends Ni.Name{constructor(e,i){super(i),this.prefix=e}setValue(e,{property:i,itemIndex:n}){this.value=e,this.scopePath=(0,Ni._)`.${new Ni.Name(i)}[${n}]`}};Ui.ValueScopeName=Wu;var oN=(0,Ni._)`\n`,Pm=class extends Lu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?oN:Ni.nil}}get(){return this._scope}name(e){return new Wu(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,Ni._)`${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=Ni.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,Uu.Started);let c=i(u);if(c){let p=this.opts.es5?Ui.varKinds.var:Ui.varKinds.const;r=(0,Ni._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,Ni._)`${r}${c}${this.opts._n}`;else throw new ym(u);l.set(u,Uu.Completed)})}return r}};Ui.ValueScope=Pm});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=io(),yn=jm(),Mt=io();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return Mt._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return Mt.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return Mt.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return Mt.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return Mt.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return Mt.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return Mt.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return Mt.Name}});var Ju=jm();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return Ju.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return Ju.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return Ju.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return Ju.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 st=class{optimizeNodes(){return this}optimizeNames(e,i){return this}},Sm=class extends st{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=jr(this.rhs,e,i)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Bu=class extends st{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=jr(this.rhs,e,i),this}get names(){let e=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return Vu(e,this.rhs)}},Om=class extends Bu{constructor(e,i,n,a){super(e,n,a),this.op=i}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},xm=class extends st{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Tm=class extends st{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Mm=class extends st{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Em=class extends st{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=jr(this.code,e,i),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},no=class extends st{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)||(lN(e,r.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,i)=>ja(e,i.names),{})}},ot=class extends no{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},km=class extends no{},Pr=class extends ot{};Pr.kind="else";var ya=class t extends ot{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 Pr(n):n}if(i)return e===!1?i instanceof t?i:i.nodes:this.nodes.length?this:new t(hO(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=jr(this.condition,e,i),this}get names(){let e=super.names;return Vu(e,this.condition),this.else&&ja(e,this.else.names),e}};ya.kind="if";var Pa=class extends ot{};Pa.kind="for";var qm=class extends Pa{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=jr(this.iteration,e,i),this}get names(){return ja(super.names,this.iteration.names)}},_m=class extends Pa{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=Vu(super.names,this.from);return Vu(e,this.to)}},Fu=class extends Pa{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=jr(this.iterable,e,i),this}get names(){return ja(super.names,this.iterable.names)}},to=class extends ot{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)}};to.kind="func";var ao=class extends no{render(e){return"return "+super.render(e)}};ao.kind="return";var Hm=class extends ot{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&&ja(e,this.catch.names),this.finally&&ja(e,this.finally.names),e}},ro=class extends ot{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};ro.kind="catch";var so=class extends ot{render(e){return"finally"+super.render(e)}};so.kind="finally";var Im=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 km]}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 Sm(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 Bu(e,i,n))}add(e,i){return this._leafNode(new Om(e,oe.operators.ADD,i))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new Em(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 ya(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 ya(e))}else(){return this._elseNode(new Pr)}endIf(){return this._endBlockNode(ya,Pr)}_for(e,i){return this._blockNode(e),i&&this.code(i).endFor(),this}for(e,i){return this._for(new qm(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 _m(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 Fu("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 Fu("in",a,r,i),()=>n(r))}endFor(){return this._endBlockNode(Pa)}label(e){return this._leafNode(new xm(e))}break(e){return this._leafNode(new Tm(e))}return(e){let i=new ao;if(this._blockNode(i),this.code(e),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ao)}try(e,i,n){if(!i&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new Hm;if(this._blockNode(a),this.code(e),i){let r=this.name("e");this._currNode=a.catch=new ro(r),i(r)}return n&&(this._currNode=a.finally=new so,this.code(n)),this._endBlockNode(ro,so)}throw(e){return this._leafNode(new Mm(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 to(e,i,n)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(to)}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 ya))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=Im;function ja(t,e){for(let i in e)t[i]=(t[i]||0)+(e[i]||0);return t}function Vu(t,e){return e instanceof fe._CodeOrName?ja(t,e.names):t}function jr(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 lN(t,e){for(let i in e)t[i]=(t[i]||0)-(e[i]||0)}function hO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${Rm(t)}`}oe.not=hO;var uN=gO(oe.operators.AND);function cN(...t){return t.reduce(uN)}oe.and=cN;var pN=gO(oe.operators.OR);function dN(...t){return t.reduce(pN)}oe.or=dN;function gO(t){return(e,i)=>e===fe.nil?i:i===fe.nil?e:(0,fe._)`${Rm(e)} ${t} ${Rm(i)}`}function Rm(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(),hN=io();function gN(t){let e={};for(let i of t)e[i]=!0;return e}le.toHash=gN;function mN(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(wO(t,e),!vO(e,t.self.RULES.all))}le.alwaysValidSchema=mN;function wO(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]||bO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=wO;function vO(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(e[i])return!0;return!1}le.schemaHasRules=vO;function fN(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=fN;function wN({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=wN;function vN(t){return CO(decodeURIComponent(t))}le.unescapeFragment=vN;function CN(t){return encodeURIComponent(Dm(t))}le.escapeFragment=CN;function Dm(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=Dm;function CO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=CO;function AN(t,e){if(Array.isArray(t))for(let i of t)e(i);else e(t)}le.eachItem=AN;function mO({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:mO({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} || {}`),Gm(t,i,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:AO}),items:mO({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 AO(t,e){if(e===!0)return t.var("props",!0);let i=t.var("props",(0,_e._)`{}`);return e!==void 0&&Gm(t,i,e),i}le.evaluatedPropsToName=AO;function Gm(t,e,i){Object.keys(i).forEach(n=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(n)}`,!0))}le.setEvaluated=Gm;var fO={};function bN(t,e){return t.scopeValue("func",{ref:e,code:fO[e.code]||(fO[e.code]=new hN._Code(e.code))})}le.useFunc=bN;var zm;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(zm||(le.Type=zm={}));function yN(t,e,i){if(t instanceof _e.Name){let n=e===zm.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():"/"+Dm(t)}le.getErrorPath=yN;function bO(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=bO});var lt=w($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});var Mi=re(),PN={data:new Mi.Name("data"),valCxt:new Mi.Name("valCxt"),instancePath:new Mi.Name("instancePath"),parentData:new Mi.Name("parentData"),parentDataProperty:new Mi.Name("parentDataProperty"),rootData:new Mi.Name("rootData"),dynamicAnchors:new Mi.Name("dynamicAnchors"),vErrors:new Mi.Name("vErrors"),errors:new Mi.Name("errors"),this:new Mi.Name("this"),self:new Mi.Name("self"),scope:new Mi.Name("scope"),json:new Mi.Name("json"),jsonPos:new Mi.Name("jsonPos"),jsonLen:new Mi.Name("jsonLen"),jsonPart:new Mi.Name("jsonPart")};$m.default=PN});var oo=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.extendErrors=Ei.resetErrorsCount=Ei.reportExtraError=Ei.reportError=Ei.keyword$DataError=Ei.keywordError=void 0;var ve=re(),Zu=we(),Ii=lt();Ei.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};Ei.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 jN(t,e=Ei.keywordError,i,n){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=jO(t,e,i);n??(s||o)?yO(r,l):PO(a,(0,ve._)`[${l}]`)}Ei.reportError=jN;function SN(t,e=Ei.keywordError,i){let{it:n}=t,{gen:a,compositeRule:r,allErrors:s}=n,o=jO(t,e,i);yO(a,o),r||s||PO(n,Ii.default.vErrors)}Ei.reportExtraError=SN;function ON(t,e){t.assign(Ii.default.errors,e),t.if((0,ve._)`${Ii.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Ii.default.vErrors}.length`,e),()=>t.assign(Ii.default.vErrors,null)))}Ei.resetErrorsCount=ON;function xN({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,Ii.default.errors,o=>{t.const(s,(0,ve._)`${Ii.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Ii.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))})}Ei.extendErrors=xN;function yO(t,e){let i=t.const("err",e);t.if((0,ve._)`${Ii.default.vErrors} === null`,()=>t.assign(Ii.default.vErrors,(0,ve._)`[${i}]`),(0,ve._)`${Ii.default.vErrors}.push(${i})`),t.code((0,ve._)`${Ii.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 Sa={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 jO(t,e,i){let{createErrors:n}=t.it;return n===!1?(0,ve._)`{}`:TN(t,e,i)}function TN(t,e,i={}){let{gen:n,it:a}=t,r=[MN(a,i),EN(t,i)];return kN(t,e,r),n.object(...r)}function MN({errorPath:t},{instancePath:e}){let i=e?(0,ve.str)`${t}${(0,Zu.getErrorPath)(e,Zu.Type.Str)}`:t;return[Ii.default.instancePath,(0,ve.strConcat)(Ii.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,Zu.getErrorPath)(i,Zu.Type.Str)}`),[Sa.schemaPath,a]}function kN(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([Sa.keyword,a],[Sa.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&n.push([Sa.message,typeof i=="function"?i(t):i]),l.verbose&&n.push([Sa.schema,s],[Sa.parentSchema,(0,ve._)`${c}${p}`],[Ii.default.data,r]),u&&n.push([Sa.propertyName,u])}});var OO=w(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.boolOrEmptySchema=Sr.topBoolOrEmptySchema=void 0;var qN=oo(),_N=re(),HN=lt(),IN={message:"boolean schema is false"};function RN(t){let{gen:e,schema:i,validateName:n}=t;i===!1?SO(t,!1):typeof i=="object"&&i.$async===!0?e.return(HN.default.data):(e.assign((0,_N._)`${n}.errors`,null),e.return(!0))}Sr.topBoolOrEmptySchema=RN;function zN(t,e){let{gen:i,schema:n}=t;n===!1?(i.var(e,!1),SO(t)):i.var(e,!0)}Sr.boolOrEmptySchema=zN;function SO(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,qN.reportError)(a,IN,void 0,e)}});var Nm=w(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.getRules=Or.isJSONType=void 0;var DN=["string","number","integer","boolean","null","object","array"],GN=new Set(DN);function $N(t){return typeof t=="string"&&GN.has(t)}Or.isJSONType=$N;function NN(){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:{}}}Or.getRules=NN});var Um=w(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.shouldUseRule=Et.shouldUseGroup=Et.schemaHasRulesForType=void 0;function UN({schema:t,self:e},i){let n=e.RULES.types[i];return n&&n!==!0&&xO(t,n)}Et.schemaHasRulesForType=UN;function xO(t,e){return e.rules.some(i=>TO(t,i))}Et.shouldUseGroup=xO;function TO(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))}Et.shouldUseRule=TO});var lo=w(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.reportTypeError=ki.checkDataTypes=ki.checkDataType=ki.coerceAndCheckDataType=ki.getJSONTypes=ki.getSchemaTypes=ki.DataType=void 0;var LN=Nm(),WN=Um(),BN=oo(),te=re(),MO=we(),xr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(xr||(ki.DataType=xr={}));function FN(t){let e=EO(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}ki.getSchemaTypes=FN;function EO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(LN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}ki.getJSONTypes=EO;function VN(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,WN.schemaHasRulesForType)(t,e[0]));if(s){let o=Wm(e,n,a.strictNumbers,xr.Wrong);i.if(o,()=>{r.length?ZN(t,e,r):Bm(t)})}return s}ki.coerceAndCheckDataType=VN;var kO=new Set(["string","number","integer","boolean","null"]);function JN(t,e){return e?t.filter(i=>kO.has(i)||e==="array"&&i==="array"):[]}function ZN(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(Wm(e,a,r.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(let u of i)(kO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);n.else(),Bm(t),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),KN(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 kN({gen:t,parentData:e,parentDataProperty:i},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${i}]`,n))}function zm(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)}}ki.checkDataType=zm;function Dm(t,e,i,n){if(t.length===1)return zm(t[0],e,i,n);let a,r=(0,CO.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,zm(s,e,i,n));return a}ki.checkDataTypes=Dm;var qN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Gm(t){let e=_N(t);(0,ON.reportError)(e,qN)}ki.reportTypeError=Gm;function _N(t){let{gen:e,data:i,schema:n}=t,a=(0,CO.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:i,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:t}}});var PO=w(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.assignDefaults=void 0;var Or=re(),HN=we();function RN(t,e){let{properties:i,items:n}=t.schema;if(e==="object"&&i)for(let a in i)yO(t,a,i[a].default);else e==="array"&&Array.isArray(n)&&n.forEach((a,r)=>yO(t,r,a.default))}Lu.assignDefaults=RN;function yO(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,HN.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(),$m=we(),Mt=st(),IN=we();function zN(t,e){let{gen:i,data:n,it:a}=t;i.if(Um(i,n,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=zN;function DN({gen:t,data:e,it:{opts:i}},n,a){return(0,Ne.or)(...n.map(r=>(0,Ne.and)(Um(t,e,r,i.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=DN;function GN(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=GN;function jO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=jO;function Nm(t,e,i){return(0,Ne._)`${jO(t)}.call(${e}, ${i})`}Ee.isOwnProperty=Nm;function $N(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} !== undefined`;return n?(0,Ne._)`${a} && ${Nm(t,e,i)}`:a}Ee.propertyInData=$N;function Um(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} === undefined`;return n?(0,Ne.or)(a,(0,Ne.not)(Nm(t,e,i))):a}Ee.noPropertyInData=Um;function SO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=SO;function NN(t,e){return SO(e).filter(i=>!(0,$m.alwaysValidSchema)(t,e[i]))}Ee.schemaProperties=NN;function UN({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=UN;var LN=(0,Ne._)`new RegExp`;function WN({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"?LN:(0,IN.useFunc)(t,a)}(${i}, ${n})`})}Ee.usePattern=WN;function BN(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:$m.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=BN;function FN(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,$m.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=FN});var TO=w(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.validateKeywordUsage=In.validSchemaType=In.funcKeywordCode=In.macroKeywordCode=void 0;var Ii=re(),ja=st(),VN=dn(),JN=ao();function ZN(t,e){let{gen:i,keyword:n,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=xO(i,n,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let u=i.name("valid");t.subschema({schema:o,schemaPath:Ii.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}In.macroKeywordCode=ZN;function KN(t,e){var i;let{gen:n,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;YN(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=xO(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&&OO(t),f(()=>t.error());else{let v=e.async?h():g();e.modifying&&OO(t),f(()=>QN(t,v))}}function h(){let v=n.let("ruleErrs",null);return n.try(()=>m((0,Ii._)`await `),y=>n.assign(p,!1).if((0,Ii._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,Ii._)`${y}.errors`),()=>n.throw(y))),v}function g(){let v=(0,Ii._)`${c}.errors`;return n.assign(v,null),m(Ii.nil),v}function m(v=e.async?(0,Ii._)`await `:Ii.nil){let y=l.opts.passContext?ja.default.this:ja.default.self,A=!("compile"in e&&!o||e.schema===!1);n.assign(p,(0,Ii._)`${v}${(0,VN.callValidateCode)(t,c,y,A)}`,e.modifying)}function f(v){var y;n.if((0,Ii.not)((y=e.valid)!==null&&y!==void 0?y:p),v)}}In.funcKeywordCode=KN;function OO(t){let{gen:e,data:i,it:n}=t;e.if(n.parentData,()=>e.assign(i,(0,Ii._)`${n.parentData}[${n.parentDataProperty}]`))}function QN(t,e){let{gen:i}=t;i.if((0,Ii._)`Array.isArray(${e})`,()=>{i.assign(ja.default.vErrors,(0,Ii._)`${ja.default.vErrors} === null ? ${e} : ${ja.default.vErrors}.concat(${e})`).assign(ja.default.errors,(0,Ii._)`${ja.default.vErrors}.length`),(0,JN.extendErrors)(t)},()=>t.error())}function YN({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function xO(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,Ii.stringify)(i)})}function XN(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=XN;function eU({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=eU});var EO=w(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.extendSubschemaMode=Et.extendSubschemaData=Et.getSubschema=void 0;var zn=re(),MO=we();function iU(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,MO.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=iU;function nU(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,MO.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=nU;function tU(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=tU});var Lm=w((Eae,kO)=>{"use strict";kO.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 _O=w((kae,qO)=>{"use strict";var kt=qO.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(Li,"__esModule",{value:!0});Li.getSchemaRefs=Li.resolveUrl=Li.normalizeId=Li._getFullPath=Li.getFullPath=Li.inlineRef=void 0;var rU=we(),sU=Lm(),oU=_O(),lU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function uU(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Wm(t):e?HO(t)<=e:!1}Li.inlineRef=uU;var cU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Wm(t){for(let e in t){if(cU.has(e))return!0;let i=t[e];if(Array.isArray(i)&&i.some(Wm)||typeof i=="object"&&Wm(i))return!0}return!1}function HO(t){let e=0;for(let i in t){if(i==="$ref")return 1/0;if(e++,!lU.has(i)&&(typeof t[i]=="object"&&(0,rU.eachItem)(t[i],n=>e+=HO(n)),e===1/0))return 1/0}return e}function RO(t,e="",i){i!==!1&&(e=xr(e));let n=t.parse(e);return IO(t,n)}Li.getFullPath=RO;function IO(t,e){return t.serialize(e).split("#")[0]+"#"}Li._getFullPath=IO;var pU=/#\/?$/;function xr(t){return t?t.replace(pU,""):""}Li.normalizeId=xr;function dU(t,e,i){return i=xr(i),t.resolve(e,i)}Li.resolveUrl=dU;var hU=/^[a-z_][-a-z0-9._]*$/i;function gU(t,e){if(typeof t=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,a=xr(t[i]||e),r={"":a},s=RO(n,a,!1),o={},l=new Set;return oU(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(!hU.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!sU(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Li.getSchemaRefs=gU});var uo=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getData=qt.KeywordCxt=qt.validateFunctionCode=void 0;var NO=fO(),zO=ro(),Fm=Im(),Bu=ro(),mU=PO(),lo=TO(),Bm=EO(),B=re(),ee=st(),fU=so(),ot=we(),oo=ao();function wU(t){if(WO(t)&&(BO(t),LO(t))){AU(t);return}UO(t,()=>(0,NO.topBoolOrEmptySchema)(t))}qt.validateFunctionCode=wU;function UO({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"; ${DO(i,a)}`),CU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${vU(a)}`,n.$async,()=>t.code(DO(i,a)).code(r))}function vU(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 CU(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 AU(t){let{schema:e,opts:i,gen:n}=t;UO(t,()=>{i.$comment&&e.$comment&&VO(t),SU(t),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),i.unevaluated&&bU(t),FO(t),TU(t)})}function bU(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 DO(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 yU(t,e){if(WO(t)&&(BO(t),LO(t))){PU(t,e);return}(0,NO.boolOrEmptySchema)(t,e)}function LO({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 WO(t){return typeof t.schema!="boolean"}function PU(t,e){let{schema:i,gen:n,opts:a}=t;a.$comment&&i.$comment&&VO(t),OU(t),xU(t);let r=n.const("_errs",ee.default.errors);FO(t,r),n.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function BO(t){(0,ot.checkUnknownRules)(t),jU(t)}function FO(t,e){if(t.opts.jtd)return GO(t,[],!1,e);let i=(0,zO.getSchemaTypes)(t.schema),n=(0,zO.coerceAndCheckDataType)(t,i);GO(t,i,!n,e)}function jU(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 SU(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 OU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,fU.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function xU(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function VO({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 TU(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&&MU(t),e.return((0,B._)`${ee.default.errors} === 0`))}function MU({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 GO(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(()=>ZO(t,"$ref",c.all.$ref.definition));return}l.jtd||EU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Fm.shouldUseGroup)(r,d)&&(d.type?(a.if((0,Bu.checkDataType)(d.type,s,l.strictNumbers)),$O(t,d),e.length===1&&e[0]===d.type&&i&&(a.else(),(0,Bu.reportTypeError)(t)),a.endIf()):$O(t,d),o||a.if((0,B._)`${ee.default.errors} === ${n||0}`))}}function $O(t,e){let{gen:i,schema:n,opts:{useDefaults:a}}=t;a&&(0,mU.assignDefaults)(t,e.type),i.block(()=>{for(let r of e.rules)(0,Fm.shouldUseRule)(n,r)&&ZO(t,r.keyword,r.definition,e.type)})}function EU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(kU(t,e),t.opts.allowUnionTypes||qU(t,e),_U(t,t.dataTypes))}function kU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(i=>{JO(t.dataTypes,i)||Vm(t,`type "${i}" not allowed by context "${t.dataTypes.join(",")}"`)}),RU(t,e)}}function qU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Vm(t,"use allowUnionTypes to allow union type keyword")}function _U(t,e){let i=t.self.RULES.all;for(let n in i){let a=i[n];if(typeof a=="object"&&(0,Fm.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>HU(e,s))&&Vm(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}function HU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function JO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function RU(t,e){let i=[];for(let n of t.dataTypes)JO(e,n)?i.push(n):e.includes("integer")&&n==="number"&&i.push("integer");t.dataTypes=i}function Vm(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",KO(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,Bm.getSubschema)(this.it,e);(0,Bm.extendSubschemaData)(n,this.it,e),(0,Bm.extendSubschemaMode)(n,e);let a={...this.it,...n,items:void 0,props:void 0};return yU(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 ZO(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 IU=/^\/(?:[^~]|~0|~1)*$/,zU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function KO(t,{dataLevel:e,dataNames:i,dataPathArr:n}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!IU.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=zU.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=KO});var Vu=w(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var Jm=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Zm.default=Jm});var co=w(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});var Km=so(),Qm=class extends Error{constructor(e,i,n,a){super(a||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,Km.resolveUrl)(e,i,n),this.missingSchema=(0,Km.normalizeId)((0,Km.getFullPath)(e,this.missingRef))}};Ym.default=Qm});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(),DU=Vu(),Sa=st(),jn=so(),QO=we(),GU=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 ef(t){let e=YO.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:DU.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:Sa.default.data,parentData:Sa.default.parentData,parentDataProperty:Sa.default.parentDataProperty,dataNames:[Sa.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,GU.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(Sa.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${Sa.default.self}`,`${Sa.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=ef;function $U(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=LU.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]=NU.call(this,r)}hn.resolveRef=$U;function NU(t){return(0,jn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:ef.call(this,t)}function YO(t){for(let e of this._compilations)if(UU(e,t))return e}hn.getCompilingSchema=YO;function UU(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function LU(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 Xm.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:Xm.call(this,i,o)}if(typeof s?.schema=="object"){if(s.validate||ef.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 Xm.call(this,i,s)}}hn.resolveSchema=Ju;var WU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Xm(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,QO.unescapeFragment)(o)];if(l===void 0)return;i=l;let u=typeof i=="object"&&i[this.opts.schemaId];!WU.has(o)&&u&&(e=(0,jn.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof i!="boolean"&&i.$ref&&!(0,QO.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 XO=w((zae,BU)=>{BU.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 af=w((Dae,rx)=>{"use strict";var FU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),ix=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),nf=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),nx=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),VU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function tf(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 JU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function ex(t){return t.length=0,!0}function ZU(t,e,i){if(t.length){let n=tf(t);if(n!=="")e.push(n);else return i.error=!0,!1;t.length=0}return!0}function KU(t){let e=0,i={error:!1,address:"",zone:""},n=[],a=[],r=!1,s=!1,o=ZU;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=ex}else{a.push(u);continue}}return a.length&&(o===ex?i.zone=a.join(""):s?n.push(a.join("")):n.push(tf(a))),i.address=n.join(""),i}function tx(t){if(QU(t,":")<2)return{host:t,isIPV6:!1};let e=KU(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 QU(t,e){let i=0;for(let n=0;nXU[n])}function nL(t,e=!1){if(t.indexOf("%")===-1)return t;let i="";for(let n=0;n{"use strict";var{isUUID:sL}=af(),oL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,lL=["http","https","ws","wss","urn","urn:uuid"];function uL(t){return lL.indexOf(t)!==-1}function rf(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 sx(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function ox(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 cL(t){return t.secure=rf(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function pL(t){if((t.port===(rf(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 dL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let i=t.path.match(oL);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=sf(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function hL(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=sf(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 gL(t,e){let i=t;return i.uuid=i.nss,i.nss=void 0,!e.tolerant&&(!i.uuid||!sL(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function mL(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var lx={scheme:"http",domainHost:!0,parse:sx,serialize:ox},fL={scheme:"https",domainHost:lx.domainHost,parse:sx,serialize:ox},Ku={scheme:"ws",domainHost:!0,parse:cL,serialize:pL},wL={scheme:"wss",domainHost:Ku.domainHost,parse:Ku.parse,serialize:Ku.serialize},vL={scheme:"urn",parse:dL,serialize:hL,skipNormalize:!0},CL={scheme:"urn:uuid",parse:gL,serialize:mL,skipNormalize:!0},Qu={http:lx,https:fL,ws:Ku,wss:wL,urn:vL,"urn:uuid":CL};Object.setPrototypeOf(Qu,null);function sf(t){return t&&(Qu[t]||Qu[t.toLowerCase()])||void 0}ux.exports={wsIsSecure:rf,SCHEMES:Qu,isValidSchemeName:uL,getSchemeHandler:sf}});var fx=w(($ae,Yu)=>{"use strict";var{normalizeIPv6:AL,removeDotSegments:po,recomposeAuthority:bL,normalizePercentEncoding:yL,normalizePathEncoding:PL,escapePreservingEscapes:jL,reescapeHostDelimiters:SL,isIPv4:OL,nonSimpleDomain:xL}=af(),{SCHEMES:TL,getSchemeHandler:dx}=cx();function ML(t,e){return typeof t=="string"?t=HL(t,e):typeof t=="object"&&(t=Mr(Oa(t,e),e)),t}function EL(t,e,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},a=hx(Mr(t,n),Mr(e,n),n,!0);return n.skipEscape=!0,Oa(a,n)}function hx(t,e,i,n){let a={};return n||(t=Mr(Oa(t,i),i),e=Mr(Oa(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 kL(t,e,i){let n=px(t,i),a=px(e,i);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}function Oa(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=dx(n.scheme||i.scheme);r&&r.serialize&&r.serialize(i,n),i.path!==void 0&&(n.skipEscape?i.path=yL(i.path):(i.path=jL(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),n.reference!=="suffix"&&i.scheme&&a.push(i.scheme,":");let s=bL(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 qL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function _L(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 gx(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(qL);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=_L(n,s);if(o!==void 0&&(n.error=n.error||o,a=!0),n.host)if(OL(n.host)===!1){let c=AL(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=dx(i.scheme||n.scheme);if(!i.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(i.domainHost||l&&l.domainHost)&&r===!1&&xL(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=SL(unescape(n.host),r))),n.path&&(n.path=PL(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 gx(t,e).parsed}function HL(t,e){return mx(t,e).normalized}function mx(t,e){let{parsed:i,malformedAuthorityOrPort:n}=gx(t,e);return{normalized:n?t:Oa(i,e),malformedAuthorityOrPort:n}}function px(t,e){if(typeof t=="string"){let{normalized:i,malformedAuthorityOrPort:n}=mx(t,e);return n?void 0:i}if(typeof t=="object")return Oa(t,e)}var of={SCHEMES:TL,normalize:ML,resolve:EL,resolveComponent:hx,equal:kL,serialize:Oa,parse:Mr};Yu.exports=of;Yu.exports.default=of;Yu.exports.fastUri=of});var vx=w(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var wx=fx();wx.code='require("ajv/dist/runtime/uri").default';lf.default=wx});var Ox=w(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.CodeGen=Pi.Name=Pi.nil=Pi.stringify=Pi.str=Pi._=Pi.KeywordCxt=void 0;var RL=uo();Object.defineProperty(Pi,"KeywordCxt",{enumerable:!0,get:function(){return RL.KeywordCxt}});var Er=re();Object.defineProperty(Pi,"_",{enumerable:!0,get:function(){return Er._}});Object.defineProperty(Pi,"str",{enumerable:!0,get:function(){return Er.str}});Object.defineProperty(Pi,"stringify",{enumerable:!0,get:function(){return Er.stringify}});Object.defineProperty(Pi,"nil",{enumerable:!0,get:function(){return Er.nil}});Object.defineProperty(Pi,"Name",{enumerable:!0,get:function(){return Er.Name}});Object.defineProperty(Pi,"CodeGen",{enumerable:!0,get:function(){return Er.CodeGen}});var IL=Vu(),Px=co(),zL=Rm(),ho=Zu(),DL=re(),go=so(),Xu=ro(),cf=we(),Cx=XO(),GL=vx(),jx=(t,e)=>new RegExp(t,e);jx.code="new RegExp";var $L=["removeAdditional","useDefaults","coerceTypes"],NL=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),UL={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."},LL={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Ax=200;function WL(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:jx,se=(a=t.uriResolver)!==null&&a!==void 0?a:GL.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:Ax,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:Ax,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,...WL(e)};let{es5:i,lines:n}=this.opts.code;this.scope=new DL.ValueScope({scope:{},prefixes:NL,es5:i,lines:n}),this.logger=KL(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,zL.getRules)(),bx.call(this,UL,e,"NOT SUPPORTED"),bx.call(this,LL,e,"DEPRECATED","warn"),this._metaOpts=JL.call(this),e.formats&&FL.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&VL.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),BL.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:i,schemaId:n}=this.opts,a=Cx;n==="id"&&(a={...Cx},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 Px.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=yx.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=yx.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(YL.call(this,n,i),!i)return(0,cf.eachItem)(n,r=>uf.call(this,r)),this;eW.call(this,i);let a={...i,type:(0,Xu.getJSONTypes)(i.type),schemaType:(0,Xu.getJSONTypes)(i.schemaType)};return(0,cf.eachItem)(n,a.type.length===0?r=>uf.call(this,r,a):r=>a.type.forEach(s=>uf.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]=Sx(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=IL.default;mo.MissingRefError=Px.default;Pi.default=mo;function bx(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 yx(t){return t=(0,go.normalizeId)(t),this.schemas[t]||this.refs[t]}function BL(){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 FL(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function VL(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 JL(){let t={...this.opts};for(let e of $L)delete t[e];return t}var ZL={log(){},warn(){},error(){}};function KL(t){if(t===!1)return ZL;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 QL=/^[a-z_$][a-z0-9_$:-]*$/i;function YL(t,e){let{RULES:i}=this;if((0,cf.eachItem)(t,n=>{if(i.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!QL.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 uf(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?XL.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 XL(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 eW(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Sx(e)),t.validateSchema=this.compile(e,!0))}var iW={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Sx(t){return{anyOf:[t,iW]}}});var xx=w(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var nW={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};pf.default=nW});var kx=w(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.callRef=xa.getValidate=void 0;var tW=co(),Tx=dn(),Wi=re(),kr=st(),Mx=Zu(),ec=we(),aW={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=Mx.resolveRef.call(l,u,a,i);if(c===void 0)throw new tW.default(n.opts.uriResolver,a,i);if(c instanceof Mx.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,Wi._)`${g}.validate`,u,u.$async)}function d(g){let m=Ex(t,g);ic(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Wi.stringify)(g)}:{ref:g}),f=e.name("valid"),v=t.subschema({schema:g,dataTypes:[],schemaPath:Wi.nil,topSchemaRef:m,errSchemaPath:i},f);t.mergeEvaluated(v),t.ok(f)}}};function Ex(t,e){let{gen:i}=t;return e.validate?i.scopeValue("validate",{ref:e.validate}):(0,Wi._)`${i.scopeValue("wrapper",{ref:e})}.validate`}xa.getValidate=Ex;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:Wi.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,Wi._)`await ${(0,Tx.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Wi._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,Tx.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Wi._)`${g}.errors`;a.assign(kr.default.vErrors,(0,Wi._)`${kr.default.vErrors} === null ? ${m} : ${kr.default.vErrors}.concat(${m})`),a.assign(kr.default.errors,(0,Wi._)`${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,Wi._)`${g}.evaluated.props`);r.props=ec.mergeEvaluated.props(a,v,r.props,Wi.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,Wi._)`${g}.evaluated.items`);r.items=ec.mergeEvaluated.items(a,v,r.items,Wi.Name)}}}xa.callRef=ic;xa.default=aW});var qx=w(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var rW=xx(),sW=kx(),oW=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",rW.default,sW.default];df.default=oW});var _x=w(hf=>{"use strict";Object.defineProperty(hf,"__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}},lW={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}}`},uW={keyword:Object.keys(tc),type:"number",schemaType:"number",$data:!0,error:lW,code(t){let{keyword:e,data:i,schemaCode:n}=t;t.fail$data((0,nc._)`${i} ${tc[e].fail} ${n} || isNaN(${i})`)}};hf.default=uW});var Hx=w(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var fo=re(),cW={message:({schemaCode:t})=>(0,fo.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,fo._)`{multipleOf: ${t}}`},pW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:cW,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}))`)}};gf.default=pW});var Ix=w(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});function Rx(t){let e=t.length,i=0,n=0,a;for(;n=55296&&a<=56319&&n{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var Ta=re(),dW=we(),hW=Ix(),gW={message({keyword:t,schemaCode:e}){let i=t==="maxLength"?"more":"fewer";return(0,Ta.str)`must NOT have ${i} than ${e} characters`},params:({schemaCode:t})=>(0,Ta._)`{limit: ${t}}`},mW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:gW,code(t){let{keyword:e,data:i,schemaCode:n,it:a}=t,r=e==="maxLength"?Ta.operators.GT:Ta.operators.LT,s=a.opts.unicode===!1?(0,Ta._)`${i}.length`:(0,Ta._)`${(0,dW.useFunc)(t.gen,hW.default)}(${i})`;t.fail$data((0,Ta._)`${s} ${r} ${n}`)}};ff.default=mW});var Dx=w(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var fW=dn(),wW=we(),qr=re(),vW={message:({schemaCode:t})=>(0,qr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,qr._)`{pattern: ${t}}`},CW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:vW,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,wW.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,fW.usePattern)(t,a);t.fail$data((0,qr._)`!${l}.test(${i})`)}}};wf.default=CW});var Gx=w(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var wo=re(),AW={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}}`},bW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:AW,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}`)}};vf.default=bW});var $x=w(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var vo=dn(),Co=re(),yW=we(),PW={message:({params:{missingProperty:t}})=>(0,Co.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Co._)`{missingProperty: ${t}}`},jW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:PW,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,yW.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)}}};Cf.default=jW});var Nx=w(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var Ao=re(),SW={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}}`},OW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:SW,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}`)}};Af.default=OW});var ac=w(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var Ux=Lm();Ux.code='require("ajv/dist/runtime/equal").default';bf.default=Ux});var Lx=w(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});var yf=ro(),ji=re(),xW=we(),TW=ac(),MW={message:({params:{i:t,j:e}})=>(0,ji.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,ji._)`{i: ${t}, j: ${e}}`},EW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:MW,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,yf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,ji._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,ji._)`${i}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,ji._)`${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,yf.checkDataTypes)(u,f,o.opts.strictNumbers,yf.DataType.Wrong),y=e.const("indices",(0,ji._)`{}`);e.for((0,ji._)`;${g}--;`,()=>{e.let(f,(0,ji._)`${i}[${g}]`),e.if(v,(0,ji._)`continue`),u.length>1&&e.if((0,ji._)`typeof ${f} == "string"`,(0,ji._)`${f} += "_"`),e.if((0,ji._)`typeof ${y}[${f}] == "number"`,()=>{e.assign(m,(0,ji._)`${y}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,ji._)`${y}[${f}] = ${g}`)})}function h(g,m){let f=(0,xW.useFunc)(e,TW.default),v=e.name("outer");e.label(v).for((0,ji._)`;${g}--;`,()=>e.for((0,ji._)`${m} = ${g}; ${m}--;`,()=>e.if((0,ji._)`${f}(${i}[${g}], ${i}[${m}])`,()=>{t.error(),e.assign(l,!1).break(v)})))}}};Pf.default=EW});var Wx=w(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var jf=re(),kW=we(),qW=ac(),_W={message:"must be equal to constant",params:({schemaCode:t})=>(0,jf._)`{allowedValue: ${t}}`},HW={keyword:"const",$data:!0,error:_W,code(t){let{gen:e,data:i,$data:n,schemaCode:a,schema:r}=t;n||r&&typeof r=="object"?t.fail$data((0,jf._)`!${(0,kW.useFunc)(e,qW.default)}(${i}, ${a})`):t.fail((0,jf._)`${r} !== ${i}`)}};Sf.default=HW});var Bx=w(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var bo=re(),RW=we(),IW=ac(),zW={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,bo._)`{allowedValues: ${t}}`},DW={keyword:"enum",schemaType:"array",$data:!0,error:zW,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,RW.useFunc)(e,IW.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}`}}};Of.default=DW});var Fx=w(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var GW=_x(),$W=Hx(),NW=zx(),UW=Dx(),LW=Gx(),WW=$x(),BW=Nx(),FW=Lx(),VW=Wx(),JW=Bx(),ZW=[GW.default,$W.default,NW.default,UW.default,LW.default,WW.default,BW.default,FW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},VW.default,JW.default];xf.default=ZW});var Mf=w(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.validateAdditionalItems=void 0;var Ma=re(),Tf=we(),KW={message:({params:{len:t}})=>(0,Ma.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ma._)`{limit: ${t}}`},QW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:KW,code(t){let{parentSchema:e,it:i}=t,{items:n}=e;if(!Array.isArray(n)){(0,Tf.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Vx(t,n)}};function Vx(t,e){let{gen:i,schema:n,data:a,keyword:r,it:s}=t;s.items=!0;let o=i.const("len",(0,Ma._)`${a}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Ma._)`${o} <= ${e.length}`);else if(typeof n=="object"&&!(0,Tf.alwaysValidSchema)(s,n)){let u=i.var("valid",(0,Ma._)`${o} <= ${e.length}`);i.if((0,Ma.not)(u),()=>l(u)),t.ok(u)}function l(u){i.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:Tf.Type.Num},u),s.allErrors||i.if((0,Ma.not)(u),()=>i.break())})}}yo.validateAdditionalItems=Vx;yo.default=QW});var Ef=w(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateTuple=void 0;var Jx=re(),rc=we(),YW=dn(),XW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:i}=t;if(Array.isArray(e))return Zx(t,"additionalItems",e);i.items=!0,!(0,rc.alwaysValidSchema)(i,e)&&t.ok((0,YW.validateArray)(t))}};function Zx(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,Jx._)`${r}.length`);i.forEach((p,d)=>{(0,rc.alwaysValidSchema)(o,p)||(n.if((0,Jx._)`${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=Zx;Po.default=XW});var Kx=w(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var eB=Ef(),iB={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,eB.validateTuple)(t,"items")};kf.default=iB});var Yx=w(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var Qx=re(),nB=we(),tB=dn(),aB=Mf(),rB={message:({params:{len:t}})=>(0,Qx.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Qx._)`{limit: ${t}}`},sB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:rB,code(t){let{schema:e,parentSchema:i,it:n}=t,{prefixItems:a}=i;n.items=!0,!(0,nB.alwaysValidSchema)(n,e)&&(a?(0,aB.validateAdditionalItems)(t,a):t.ok((0,tB.validateArray)(t)))}};qf.default=sB});var Xx=w(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var gn=re(),sc=we(),oB={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}}`},lB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:oB,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)))}}};_f.default=lB});var nT=w(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateSchemaDeps=Dn.validatePropertyDeps=Dn.error=void 0;var Hf=re(),uB=we(),jo=dn();Dn.error={message:({params:{property:t,depsCount:e,deps:i}})=>{let n=e===1?"property":"properties";return(0,Hf.str)`must have ${n} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:i,missingProperty:n}})=>(0,Hf._)`{property: ${t}, + || ${s} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function KN({gen:t,parentData:e,parentDataProperty:i},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${i}]`,n))}function Lm(t,e,i,n=xr.Correct){let a=n===xr.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===xr.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)}}ki.checkDataType=Lm;function Wm(t,e,i,n){if(t.length===1)return Lm(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,Lm(s,e,i,n));return a}ki.checkDataTypes=Wm;var QN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Bm(t){let e=YN(t);(0,BN.reportError)(e,QN)}ki.reportTypeError=Bm;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 _O=w(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.assignDefaults=void 0;var Tr=re(),XN=we();function eU(t,e){let{properties:i,items:n}=t.schema;if(e==="object"&&i)for(let a in i)qO(t,a,i[a].default);else e==="array"&&Array.isArray(n)&&n.forEach((a,r)=>qO(t,r,a.default))}Ku.assignDefaults=eU;function qO(t,e,i){let{gen:n,compositeRule:a,data:r,opts:s}=t;if(i===void 0)return;let o=(0,Tr._)`${r}${(0,Tr.getProperty)(e)}`;if(a){(0,XN.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,Tr._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,Tr._)`${l} || ${o} === null || ${o} === ""`),n.if(l,(0,Tr._)`${o} = ${(0,Tr.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(),Fm=we(),kt=lt(),iU=we();function nU(t,e){let{gen:i,data:n,it:a}=t;i.if(Jm(i,n,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=nU;function tU({gen:t,data:e,it:{opts:i}},n,a){return(0,Ne.or)(...n.map(r=>(0,Ne.and)(Jm(t,e,r,i.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=tU;function aU(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=aU;function HO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=HO;function Vm(t,e,i){return(0,Ne._)`${HO(t)}.call(${e}, ${i})`}Ee.isOwnProperty=Vm;function rU(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} !== undefined`;return n?(0,Ne._)`${a} && ${Vm(t,e,i)}`:a}Ee.propertyInData=rU;function Jm(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} === undefined`;return n?(0,Ne.or)(a,(0,Ne.not)(Vm(t,e,i))):a}Ee.noPropertyInData=Jm;function IO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=IO;function sU(t,e){return IO(e).filter(i=>!(0,Fm.alwaysValidSchema)(t,e[i]))}Ee.schemaProperties=sU;function oU({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=[[kt.default.instancePath,(0,Ne.strConcat)(kt.default.instancePath,r)],[kt.default.parentData,s.parentData],[kt.default.parentDataProperty,s.parentDataProperty],[kt.default.rootData,kt.default.rootData]];s.opts.dynamicRef&&p.push([kt.default.dynamicAnchors,kt.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=oU;var lU=(0,Ne._)`new RegExp`;function uU({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"?lU:(0,iU.useFunc)(t,a)}(${i}, ${n})`})}Ee.usePattern=uU;function cU(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:Fm.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=cU;function pU(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,Fm.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=pU});var DO=w(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.validateKeywordUsage=Rn.validSchemaType=Rn.funcKeywordCode=Rn.macroKeywordCode=void 0;var Ri=re(),Oa=lt(),dU=dn(),hU=oo();function gU(t,e){let{gen:i,keyword:n,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=zO(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=gU;function mU(t,e){var i;let{gen:n,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;wU(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=zO(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&&RO(t),f(()=>t.error());else{let v=e.async?h():g();e.modifying&&RO(t),f(()=>fU(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?Oa.default.this:Oa.default.self,A=!("compile"in e&&!o||e.schema===!1);n.assign(p,(0,Ri._)`${v}${(0,dU.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=mU;function RO(t){let{gen:e,data:i,it:n}=t;e.if(n.parentData,()=>e.assign(i,(0,Ri._)`${n.parentData}[${n.parentDataProperty}]`))}function fU(t,e){let{gen:i}=t;i.if((0,Ri._)`Array.isArray(${e})`,()=>{i.assign(Oa.default.vErrors,(0,Ri._)`${Oa.default.vErrors} === null ? ${e} : ${Oa.default.vErrors}.concat(${e})`).assign(Oa.default.errors,(0,Ri._)`${Oa.default.vErrors}.length`),(0,hU.extendErrors)(t)},()=>t.error())}function wU({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function zO(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 vU(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=vU;function CU({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=CU});var $O=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.extendSubschemaMode=qt.extendSubschemaData=qt.getSubschema=void 0;var zn=re(),GO=we();function AU(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,GO.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')}qt.getSubschema=AU;function bU(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,GO.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]}}qt.extendSubschemaData=bU;function yU(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}qt.extendSubschemaMode=yU});var Zm=w((mre,NO)=>{"use strict";NO.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 LO=w((fre,UO)=>{"use strict";var _t=UO.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(){};Qu(e,n,a,t,"",t)};_t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};_t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};_t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};_t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Qu(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 _t.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.getSchemaRefs=Li.resolveUrl=Li.normalizeId=Li._getFullPath=Li.getFullPath=Li.inlineRef=void 0;var jU=we(),SU=Zm(),OU=LO(),xU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function TU(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Km(t):e?WO(t)<=e:!1}Li.inlineRef=TU;var MU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Km(t){for(let e in t){if(MU.has(e))return!0;let i=t[e];if(Array.isArray(i)&&i.some(Km)||typeof i=="object"&&Km(i))return!0}return!1}function WO(t){let e=0;for(let i in t){if(i==="$ref")return 1/0;if(e++,!xU.has(i)&&(typeof t[i]=="object"&&(0,jU.eachItem)(t[i],n=>e+=WO(n)),e===1/0))return 1/0}return e}function BO(t,e="",i){i!==!1&&(e=Mr(e));let n=t.parse(e);return FO(t,n)}Li.getFullPath=BO;function FO(t,e){return t.serialize(e).split("#")[0]+"#"}Li._getFullPath=FO;var EU=/#\/?$/;function Mr(t){return t?t.replace(EU,""):""}Li.normalizeId=Mr;function kU(t,e,i){return i=Mr(i),t.resolve(e,i)}Li.resolveUrl=kU;var qU=/^[a-z_][-a-z0-9._]*$/i;function _U(t,e){if(typeof t=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,a=Mr(t[i]||e),r={"":a},s=BO(n,a,!1),o={},l=new Set;return OU(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=Mr(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!==Mr(m)&&(A[0]==="#"?(u(p,o[A],A),o[A]=p):this.refs[A]=m),A}function y(A){if(typeof A=="string"){if(!qU.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!SU(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Li.getSchemaRefs=_U});var ho=w(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getData=Ht.KeywordCxt=Ht.validateFunctionCode=void 0;var QO=OO(),VO=lo(),Ym=Um(),Yu=lo(),HU=_O(),po=DO(),Qm=$O(),B=re(),ee=lt(),IU=uo(),ut=we(),co=oo();function RU(t){if(ex(t)&&(ix(t),XO(t))){GU(t);return}YO(t,()=>(0,QO.topBoolOrEmptySchema)(t))}Ht.validateFunctionCode=RU;function YO({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"; ${JO(i,a)}`),DU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${zU(a)}`,n.$async,()=>t.code(JO(i,a)).code(r))}function zU(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 DU(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 GU(t){let{schema:e,opts:i,gen:n}=t;YO(t,()=>{i.$comment&&e.$comment&&tx(t),WU(t),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),i.unevaluated&&$U(t),nx(t),VU(t)})}function $U(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 JO(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 NU(t,e){if(ex(t)&&(ix(t),XO(t))){UU(t,e);return}(0,QO.boolOrEmptySchema)(t,e)}function XO({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 ex(t){return typeof t.schema!="boolean"}function UU(t,e){let{schema:i,gen:n,opts:a}=t;a.$comment&&i.$comment&&tx(t),BU(t),FU(t);let r=n.const("_errs",ee.default.errors);nx(t,r),n.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function ix(t){(0,ut.checkUnknownRules)(t),LU(t)}function nx(t,e){if(t.opts.jtd)return ZO(t,[],!1,e);let i=(0,VO.getSchemaTypes)(t.schema),n=(0,VO.coerceAndCheckDataType)(t,i);ZO(t,i,!n,e)}function LU(t){let{schema:e,errSchemaPath:i,opts:n,self:a}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,ut.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function WU(t){let{schema:e,opts:i}=t;e.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,ut.checkStrictMode)(t,"default is ignored in the schema root")}function BU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,IU.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 tx({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 VU(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,ut.schemaHasRulesButRef)(r,c))){a.block(()=>rx(t,"$ref",c.all.$ref.definition));return}l.jtd||ZU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Ym.shouldUseGroup)(r,d)&&(d.type?(a.if((0,Yu.checkDataType)(d.type,s,l.strictNumbers)),KO(t,d),e.length===1&&e[0]===d.type&&i&&(a.else(),(0,Yu.reportTypeError)(t)),a.endIf()):KO(t,d),o||a.if((0,B._)`${ee.default.errors} === ${n||0}`))}}function KO(t,e){let{gen:i,schema:n,opts:{useDefaults:a}}=t;a&&(0,HU.assignDefaults)(t,e.type),i.block(()=>{for(let r of e.rules)(0,Ym.shouldUseRule)(n,r)&&rx(t,r.keyword,r.definition,e.type)})}function ZU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(KU(t,e),t.opts.allowUnionTypes||QU(t,e),YU(t,t.dataTypes))}function KU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(i=>{ax(t.dataTypes,i)||Xm(t,`type "${i}" not allowed by context "${t.dataTypes.join(",")}"`)}),eL(t,e)}}function QU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Xm(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,Ym.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>XU(e,s))&&Xm(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}function XU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function ax(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function eL(t,e){let i=[];for(let n of t.dataTypes)ax(e,n)?i.push(n):e.includes("integer")&&n==="number"&&i.push("integer");t.dataTypes=i}function Xm(t,e){let i=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${i}" (strictTypes)`,(0,ut.checkStrictMode)(t,e,t.opts.strictTypes)}var Xu=class{constructor(e,i,n){if((0,po.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,ut.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",sx(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,po.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?co.reportExtraError:co.reportError)(this,this.def.error,i)}$dataError(){(0,co.reportError)(this,this.def.$dataError||co.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,co.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,Yu.checkDataTypes)(l,i,r.opts.strictNumbers,Yu.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,Qm.getSubschema)(this.it,e);(0,Qm.extendSubschemaData)(n,this.it,e),(0,Qm.extendSubschemaMode)(n,e);let a={...this.it,...n,items:void 0,props:void 0};return NU(a,i),a}mergeEvaluated(e,i){let{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=ut.mergeEvaluated.props(a,e.props,n.props,i)),n.items!==!0&&e.items!==void 0&&(n.items=ut.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}};Ht.KeywordCxt=Xu;function rx(t,e,i,n){let a=new Xu(t,i,e);"code"in i?i.code(a,n):a.$data&&i.validate?(0,po.funcKeywordCode)(a,i):"macro"in i?(0,po.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,po.funcKeywordCode)(a,i)}var iL=/^\/(?:[^~]|~0|~1)*$/,nL=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function sx(t,{dataLevel:e,dataNames:i,dataPathArr:n}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!iL.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=nL.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(a=u[2],a==="#"){if(c>=e)throw new Error(l("property/index",c));return 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,ut.unescapeJsonPointer)(u))}`,s=(0,B._)`${s} && ${r}`);return s;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}Ht.getData=sx});var ec=w(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var ef=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};nf.default=ef});var go=w(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var tf=uo(),af=class extends Error{constructor(e,i,n,a){super(a||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,tf.resolveUrl)(e,i,n),this.missingSchema=(0,tf.normalizeId)((0,tf.getFullPath)(e,this.missingRef))}};rf.default=af});var nc=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(),tL=ec(),xa=lt(),jn=uo(),ox=we(),aL=ho(),Er=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=Er;function of(t){let e=lx.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:tL.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:xa.default.data,parentData:xa.default.parentData,parentDataProperty:xa.default.parentDataProperty,dataNames:[xa.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,aL.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(xa.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${xa.default.self}`,`${xa.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=of;function rL(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=lL.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 Er({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[i]=sL.call(this,r)}hn.resolveRef=rL;function sL(t){return(0,jn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:of.call(this,t)}function lx(t){for(let e of this._compilations)if(oL(e,t))return e}hn.getCompilingSchema=lx;function oL(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function lL(t,e){let i;for(;typeof(i=this.refs[e])=="string";)e=i;return i||this.schemas[e]||ic.call(this,t,e)}function ic(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 sf.call(this,i,t);let r=(0,jn.normalizeId)(n),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=ic.call(this,t,s);return typeof o?.schema!="object"?void 0:sf.call(this,i,o)}if(typeof s?.schema=="object"){if(s.validate||of.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 Er({schema:o,schemaId:l,root:t,baseId:a})}return sf.call(this,i,s)}}hn.resolveSchema=ic;var uL=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function sf(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,ox.unescapeFragment)(o)];if(l===void 0)return;i=l;let u=typeof i=="object"&&i[this.opts.schemaId];!uL.has(o)&&u&&(e=(0,jn.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof i!="boolean"&&i.$ref&&!(0,ox.schemaHasRulesButRef)(i,this.RULES)){let o=(0,jn.resolveUrl)(this.opts.uriResolver,e,i.$ref);r=ic.call(this,n,o)}let{schemaId:s}=this.opts;if(r=r||new Er({schema:i,schemaId:s,root:n,baseId:e}),r.schema!==r.root.schema)return r}});var ux=w((yre,cL)=>{cL.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 cf=w((Pre,mx)=>{"use strict";var pL=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),px=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),lf=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),dx=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),dL=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function uf(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 hL=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function cx(t){return t.length=0,!0}function gL(t,e,i){if(t.length){let n=uf(t);if(n!=="")e.push(n);else return i.error=!0,!1;t.length=0}return!0}function mL(t){let e=0,i={error:!1,address:"",zone:""},n=[],a=[],r=!1,s=!1,o=gL;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=cx}else{a.push(u);continue}}return a.length&&(o===cx?i.zone=a.join(""):s?n.push(a.join("")):n.push(uf(a))),i.address=n.join(""),i}function hx(t){if(fL(t,":")<2)return{host:t,isIPV6:!1};let e=mL(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 fL(t,e){let i=0;for(let n=0;nvL[n])}function bL(t,e=!1){if(t.indexOf("%")===-1)return t;let i="";for(let n=0;n{"use strict";var{isUUID:SL}=cf(),OL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,xL=["http","https","ws","wss","urn","urn:uuid"];function TL(t){return xL.indexOf(t)!==-1}function pf(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 fx(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function wx(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 ML(t){return t.secure=pf(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function EL(t){if((t.port===(pf(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 kL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let i=t.path.match(OL);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=df(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function qL(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),a=`${i}:${e.nid||n}`,r=df(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 _L(t,e){let i=t;return i.uuid=i.nss,i.nss=void 0,!e.tolerant&&(!i.uuid||!SL(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function HL(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var vx={scheme:"http",domainHost:!0,parse:fx,serialize:wx},IL={scheme:"https",domainHost:vx.domainHost,parse:fx,serialize:wx},tc={scheme:"ws",domainHost:!0,parse:ML,serialize:EL},RL={scheme:"wss",domainHost:tc.domainHost,parse:tc.parse,serialize:tc.serialize},zL={scheme:"urn",parse:kL,serialize:qL,skipNormalize:!0},DL={scheme:"urn:uuid",parse:_L,serialize:HL,skipNormalize:!0},ac={http:vx,https:IL,ws:tc,wss:RL,urn:zL,"urn:uuid":DL};Object.setPrototypeOf(ac,null);function df(t){return t&&(ac[t]||ac[t.toLowerCase()])||void 0}Cx.exports={wsIsSecure:pf,SCHEMES:ac,isValidSchemeName:TL,getSchemeHandler:df}});var Ox=w((Sre,rc)=>{"use strict";var{normalizeIPv6:GL,removeDotSegments:mo,recomposeAuthority:$L,normalizePercentEncoding:NL,normalizePathEncoding:UL,escapePreservingEscapes:LL,reescapeHostDelimiters:WL,isIPv4:BL,nonSimpleDomain:FL}=cf(),{SCHEMES:VL,getSchemeHandler:yx}=Ax();function JL(t,e){return typeof t=="string"?t=XL(t,e):typeof t=="object"&&(t=kr(Ta(t,e),e)),t}function ZL(t,e,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},a=Px(kr(t,n),kr(e,n),n,!0);return n.skipEscape=!0,Ta(a,n)}function Px(t,e,i,n){let a={};return n||(t=kr(Ta(t,i),i),e=kr(Ta(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=mo(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=mo(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=mo(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=mo(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 KL(t,e,i){let n=bx(t,i),a=bx(e,i);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}function Ta(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=yx(n.scheme||i.scheme);r&&r.serialize&&r.serialize(i,n),i.path!==void 0&&(n.skipEscape?i.path=NL(i.path):(i.path=LL(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),n.reference!=="suffix"&&i.scheme&&a.push(i.scheme,":");let s=$L(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=mo(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 QL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\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 jx(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(QL);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(BL(n.host)===!1){let c=GL(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=yx(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=WL(unescape(n.host),r))),n.path&&(n.path=UL(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 kr(t,e){return jx(t,e).parsed}function XL(t,e){return Sx(t,e).normalized}function Sx(t,e){let{parsed:i,malformedAuthorityOrPort:n}=jx(t,e);return{normalized:n?t:Ta(i,e),malformedAuthorityOrPort:n}}function bx(t,e){if(typeof t=="string"){let{normalized:i,malformedAuthorityOrPort:n}=Sx(t,e);return n?void 0:i}if(typeof t=="object")return Ta(t,e)}var hf={SCHEMES:VL,normalize:JL,resolve:ZL,resolveComponent:Px,equal:KL,serialize:Ta,parse:kr};rc.exports=hf;rc.exports.default=hf;rc.exports.fastUri=hf});var Tx=w(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var xx=Ox();xx.code='require("ajv/dist/runtime/uri").default';gf.default=xx});var Rx=w(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.CodeGen=Pi.Name=Pi.nil=Pi.stringify=Pi.str=Pi._=Pi.KeywordCxt=void 0;var eW=ho();Object.defineProperty(Pi,"KeywordCxt",{enumerable:!0,get:function(){return eW.KeywordCxt}});var qr=re();Object.defineProperty(Pi,"_",{enumerable:!0,get:function(){return qr._}});Object.defineProperty(Pi,"str",{enumerable:!0,get:function(){return qr.str}});Object.defineProperty(Pi,"stringify",{enumerable:!0,get:function(){return qr.stringify}});Object.defineProperty(Pi,"nil",{enumerable:!0,get:function(){return qr.nil}});Object.defineProperty(Pi,"Name",{enumerable:!0,get:function(){return qr.Name}});Object.defineProperty(Pi,"CodeGen",{enumerable:!0,get:function(){return qr.CodeGen}});var iW=ec(),_x=go(),nW=Nm(),fo=nc(),tW=re(),wo=uo(),sc=lo(),ff=we(),Mx=ux(),aW=Tx(),Hx=(t,e)=>new RegExp(t,e);Hx.code="new RegExp";var rW=["removeAdditional","useDefaults","coerceTypes"],sW=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),oW={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."},lW={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Ex=200;function uW(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:Hx,se=(a=t.uriResolver)!==null&&a!==void 0?a:aW.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:Ex,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:Ex,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 vo=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...uW(e)};let{es5:i,lines:n}=this.opts.code;this.scope=new tW.ValueScope({scope:{},prefixes:sW,es5:i,lines:n}),this.logger=mW(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,nW.getRules)(),kx.call(this,oW,e,"NOT SUPPORTED"),kx.call(this,lW,e,"DEPRECATED","warn"),this._metaOpts=hW.call(this),e.formats&&pW.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&dW.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),cW.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 _x.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,c)}}function o({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await r.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,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,wo.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=qx.call(this,e))=="string";)e=i;if(i===void 0){let{schemaId:n}=this.opts,a=new fo.SchemaEnv({schema:{},schemaId:n});if(i=fo.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=qx.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,wo.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(wW.call(this,n,i),!i)return(0,ff.eachItem)(n,r=>mf.call(this,r)),this;CW.call(this,i);let a={...i,type:(0,sc.getJSONTypes)(i.type),schemaType:(0,sc.getJSONTypes)(i.schemaType)};return(0,ff.eachItem)(n,a.type.length===0?r=>mf.call(this,r,a):r=>a.type.forEach(s=>mf.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]=Ix(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,wo.normalizeId)(s||n);let u=wo.getSchemaRefs.call(this,e,n);return l=new fo.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):fo.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{fo.compileSchema.call(this,e)}finally{this.opts=i}}};vo.ValidationError=iW.default;vo.MissingRefError=_x.default;Pi.default=vo;function kx(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 qx(t){return t=(0,wo.normalizeId)(t),this.schemas[t]||this.refs[t]}function cW(){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 pW(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function dW(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 hW(){let t={...this.opts};for(let e of rW)delete t[e];return t}var gW={log(){},warn(){},error(){}};function mW(t){if(t===!1)return gW;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 fW=/^[a-z_$][a-z0-9_$:-]*$/i;function wW(t,e){let{RULES:i}=this;if((0,ff.eachItem)(t,n=>{if(i.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!fW.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 mf(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,sc.getJSONTypes)(e.type),schemaType:(0,sc.getJSONTypes)(e.schemaType)}};e.before?vW.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 vW(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 CW(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Ix(e)),t.validateSchema=this.compile(e,!0))}var AW={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Ix(t){return{anyOf:[t,AW]}}});var zx=w(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var bW={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};wf.default=bW});var Nx=w(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.callRef=Ma.getValidate=void 0;var yW=go(),Dx=dn(),Wi=re(),_r=lt(),Gx=nc(),oc=we(),PW={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=Gx.resolveRef.call(l,u,a,i);if(c===void 0)throw new yW.default(n.opts.uriResolver,a,i);if(c instanceof Gx.SchemaEnv)return d(c);return h(c);function p(){if(r===u)return lc(t,s,r,r.$async);let g=e.scopeValue("root",{ref:u});return lc(t,(0,Wi._)`${g}.validate`,u,u.$async)}function d(g){let m=$x(t,g);lc(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Wi.stringify)(g)}:{ref:g}),f=e.name("valid"),v=t.subschema({schema:g,dataTypes:[],schemaPath:Wi.nil,topSchemaRef:m,errSchemaPath:i},f);t.mergeEvaluated(v),t.ok(f)}}};function $x(t,e){let{gen:i}=t;return e.validate?i.scopeValue("validate",{ref:e.validate}):(0,Wi._)`${i.scopeValue("wrapper",{ref:e})}.validate`}Ma.getValidate=$x;function lc(t,e,i,n){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,u=l.passContext?_r.default.this:Wi.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,Wi._)`await ${(0,Dx.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Wi._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,Dx.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Wi._)`${g}.errors`;a.assign(_r.default.vErrors,(0,Wi._)`${_r.default.vErrors} === null ? ${m} : ${_r.default.vErrors}.concat(${m})`),a.assign(_r.default.errors,(0,Wi._)`${_r.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=oc.mergeEvaluated.props(a,f.props,r.props));else{let v=a.var("props",(0,Wi._)`${g}.evaluated.props`);r.props=oc.mergeEvaluated.props(a,v,r.props,Wi.Name)}if(r.items!==!0)if(f&&!f.dynamicItems)f.items!==void 0&&(r.items=oc.mergeEvaluated.items(a,f.items,r.items));else{let v=a.var("items",(0,Wi._)`${g}.evaluated.items`);r.items=oc.mergeEvaluated.items(a,v,r.items,Wi.Name)}}}Ma.callRef=lc;Ma.default=PW});var Ux=w(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var jW=zx(),SW=Nx(),OW=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",jW.default,SW.default];vf.default=OW});var Lx=w(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var uc=re(),It=uc.operators,cc={maximum:{okStr:"<=",ok:It.LTE,fail:It.GT},minimum:{okStr:">=",ok:It.GTE,fail:It.LT},exclusiveMaximum:{okStr:"<",ok:It.LT,fail:It.GTE},exclusiveMinimum:{okStr:">",ok:It.GT,fail:It.LTE}},xW={message:({keyword:t,schemaCode:e})=>(0,uc.str)`must be ${cc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,uc._)`{comparison: ${cc[t].okStr}, limit: ${e}}`},TW={keyword:Object.keys(cc),type:"number",schemaType:"number",$data:!0,error:xW,code(t){let{keyword:e,data:i,schemaCode:n}=t;t.fail$data((0,uc._)`${i} ${cc[e].fail} ${n} || isNaN(${i})`)}};Cf.default=TW});var Wx=w(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var Co=re(),MW={message:({schemaCode:t})=>(0,Co.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Co._)`{multipleOf: ${t}}`},EW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:MW,code(t){let{gen:e,data:i,schemaCode:n,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,Co._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,Co._)`${s} !== parseInt(${s})`;t.fail$data((0,Co._)`(${n} === 0 || (${s} = ${i}/${n}, ${o}))`)}};Af.default=EW});var Fx=w(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});function Bx(t){let e=t.length,i=0,n=0,a;for(;n=55296&&a<=56319&&n{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var Ea=re(),kW=we(),qW=Fx(),_W={message({keyword:t,schemaCode:e}){let i=t==="maxLength"?"more":"fewer";return(0,Ea.str)`must NOT have ${i} than ${e} characters`},params:({schemaCode:t})=>(0,Ea._)`{limit: ${t}}`},HW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_W,code(t){let{keyword:e,data:i,schemaCode:n,it:a}=t,r=e==="maxLength"?Ea.operators.GT:Ea.operators.LT,s=a.opts.unicode===!1?(0,Ea._)`${i}.length`:(0,Ea._)`${(0,kW.useFunc)(t.gen,qW.default)}(${i})`;t.fail$data((0,Ea._)`${s} ${r} ${n}`)}};yf.default=HW});var Jx=w(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});var IW=dn(),RW=we(),Hr=re(),zW={message:({schemaCode:t})=>(0,Hr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Hr._)`{pattern: ${t}}`},DW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:zW,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,Hr._)`new RegExp`:(0,RW.useFunc)(e,l),c=e.let("valid");e.try(()=>e.assign(c,(0,Hr._)`${u}(${r}, ${o}).test(${i})`),()=>e.assign(c,!1)),t.fail$data((0,Hr._)`!${c}`)}else{let l=(0,IW.usePattern)(t,a);t.fail$data((0,Hr._)`!${l}.test(${i})`)}}};Pf.default=DW});var Zx=w(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var Ao=re(),GW={message({keyword:t,schemaCode:e}){let i=t==="maxProperties"?"more":"fewer";return(0,Ao.str)`must NOT have ${i} than ${e} properties`},params:({schemaCode:t})=>(0,Ao._)`{limit: ${t}}`},$W={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:GW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxProperties"?Ao.operators.GT:Ao.operators.LT;t.fail$data((0,Ao._)`Object.keys(${i}).length ${a} ${n}`)}};jf.default=$W});var Kx=w(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var bo=dn(),yo=re(),NW=we(),UW={message:({params:{missingProperty:t}})=>(0,yo.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,yo._)`{missingProperty: ${t}}`},LW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:UW,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,NW.checkStrictMode)(s,v,s.opts.strictRequired)}}function u(){if(l||r)t.block$data(yo.nil,p);else for(let h of i)(0,bo.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,bo.checkMissingProp)(t,i,h)),(0,bo.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,bo.noPropertyInData)(e,a,h,o.ownProperties),()=>t.error())})}function d(h,g){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(g,(0,bo.propertyInData)(e,a,h,o.ownProperties)),e.if((0,yo.not)(g),()=>{t.error(),e.break()})},yo.nil)}}};Sf.default=LW});var Qx=w(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var Po=re(),WW={message({keyword:t,schemaCode:e}){let i=t==="maxItems"?"more":"fewer";return(0,Po.str)`must NOT have ${i} than ${e} items`},params:({schemaCode:t})=>(0,Po._)`{limit: ${t}}`},BW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:WW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxItems"?Po.operators.GT:Po.operators.LT;t.fail$data((0,Po._)`${i}.length ${a} ${n}`)}};Of.default=BW});var pc=w(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var Yx=Zm();Yx.code='require("ajv/dist/runtime/equal").default';xf.default=Yx});var Xx=w(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var Tf=lo(),ji=re(),FW=we(),VW=pc(),JW={message:({params:{i:t,j:e}})=>(0,ji.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,ji._)`{i: ${t}, j: ${e}}`},ZW={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,Tf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,ji._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,ji._)`${i}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,ji._)`${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,Tf.checkDataTypes)(u,f,o.opts.strictNumbers,Tf.DataType.Wrong),y=e.const("indices",(0,ji._)`{}`);e.for((0,ji._)`;${g}--;`,()=>{e.let(f,(0,ji._)`${i}[${g}]`),e.if(v,(0,ji._)`continue`),u.length>1&&e.if((0,ji._)`typeof ${f} == "string"`,(0,ji._)`${f} += "_"`),e.if((0,ji._)`typeof ${y}[${f}] == "number"`,()=>{e.assign(m,(0,ji._)`${y}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,ji._)`${y}[${f}] = ${g}`)})}function h(g,m){let f=(0,FW.useFunc)(e,VW.default),v=e.name("outer");e.label(v).for((0,ji._)`;${g}--;`,()=>e.for((0,ji._)`${m} = ${g}; ${m}--;`,()=>e.if((0,ji._)`${f}(${i}[${g}], ${i}[${m}])`,()=>{t.error(),e.assign(l,!1).break(v)})))}}};Mf.default=ZW});var eT=w(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Ef=re(),KW=we(),QW=pc(),YW={message:"must be equal to constant",params:({schemaCode:t})=>(0,Ef._)`{allowedValue: ${t}}`},XW={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,Ef._)`!${(0,KW.useFunc)(e,QW.default)}(${i}, ${a})`):t.fail((0,Ef._)`${r} !== ${i}`)}};kf.default=XW});var iT=w(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var jo=re(),eB=we(),iB=pc(),nB={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,jo._)`{allowedValues: ${t}}`},tB={keyword:"enum",schemaType:"array",$data:!0,error:nB,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,eB.useFunc)(e,iB.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,jo.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,jo._)`${u()}(${i}, ${h})`,()=>e.assign(c,!0).break()))}function d(h,g){let m=a[g];return typeof m=="object"&&m!==null?(0,jo._)`${u()}(${i}, ${h}[${g}])`:(0,jo._)`${i} === ${m}`}}};qf.default=tB});var nT=w(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var aB=Lx(),rB=Wx(),sB=Vx(),oB=Jx(),lB=Zx(),uB=Kx(),cB=Qx(),pB=Xx(),dB=eT(),hB=iT(),gB=[aB.default,rB.default,sB.default,oB.default,lB.default,uB.default,cB.default,pB.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},dB.default,hB.default];_f.default=gB});var If=w(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.validateAdditionalItems=void 0;var ka=re(),Hf=we(),mB={message:({params:{len:t}})=>(0,ka.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,ka._)`{limit: ${t}}`},fB={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:mB,code(t){let{parentSchema:e,it:i}=t,{items:n}=e;if(!Array.isArray(n)){(0,Hf.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}tT(t,n)}};function tT(t,e){let{gen:i,schema:n,data:a,keyword:r,it:s}=t;s.items=!0;let o=i.const("len",(0,ka._)`${a}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,ka._)`${o} <= ${e.length}`);else if(typeof n=="object"&&!(0,Hf.alwaysValidSchema)(s,n)){let u=i.var("valid",(0,ka._)`${o} <= ${e.length}`);i.if((0,ka.not)(u),()=>l(u)),t.ok(u)}function l(u){i.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:Hf.Type.Num},u),s.allErrors||i.if((0,ka.not)(u),()=>i.break())})}}So.validateAdditionalItems=tT;So.default=fB});var Rf=w(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.validateTuple=void 0;var aT=re(),dc=we(),wB=dn(),vB={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:i}=t;if(Array.isArray(e))return rT(t,"additionalItems",e);i.items=!0,!(0,dc.alwaysValidSchema)(i,e)&&t.ok((0,wB.validateArray)(t))}};function rT(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=dc.mergeEvaluated.items(n,i.length,o.items));let l=n.name("valid"),u=n.const("len",(0,aT._)`${r}.length`);i.forEach((p,d)=>{(0,dc.alwaysValidSchema)(o,p)||(n.if((0,aT._)`${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,dc.checkStrictMode)(o,f,d.strictTuples)}}}Oo.validateTuple=rT;Oo.default=vB});var sT=w(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var CB=Rf(),AB={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,CB.validateTuple)(t,"items")};zf.default=AB});var lT=w(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var oT=re(),bB=we(),yB=dn(),PB=If(),jB={message:({params:{len:t}})=>(0,oT.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,oT._)`{limit: ${t}}`},SB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:jB,code(t){let{schema:e,parentSchema:i,it:n}=t,{prefixItems:a}=i;n.items=!0,!(0,bB.alwaysValidSchema)(n,e)&&(a?(0,PB.validateAdditionalItems)(t,a):t.ok((0,yB.validateArray)(t)))}};Df.default=SB});var uT=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var gn=re(),hc=we(),OB={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}}`},xB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:OB,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,hc.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,hc.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,hc.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:hc.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)))}}};Gf.default=xB});var dT=w(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateSchemaDeps=Dn.validatePropertyDeps=Dn.error=void 0;var $f=re(),TB=we(),xo=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 cB={keyword:"dependencies",type:"object",schemaType:"object",error:Dn.error,code(t){let[e,i]=pB(t);eT(t,e),iT(t,i)}};function pB({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 eT(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,Hf._)`${l} && (${(0,jo.checkMissingProp)(t,o,r)})`),(0,jo.reportMissingProp)(t,r),i.else())}}Dn.validatePropertyDeps=eT;function iT(t,e=t.schema){let{gen:i,data:n,keyword:a,it:r}=t,s=i.name("valid");for(let o in e)(0,uB.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=iT;Dn.default=cB});var aT=w(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var tT=re(),dB=we(),hB={message:"property name must be valid",params:({params:t})=>(0,tT._)`{propertyName: ${t.propertyName}}`},gB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:hB,code(t){let{gen:e,schema:i,data:n,it:a}=t;if((0,dB.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,tT.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Rf.default=gB});var zf=w(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var oc=dn(),Sn=re(),mB=st(),lc=we(),fB={message:"must NOT have additional properties",params:({params:t})=>(0,Sn._)`{additionalProperty: ${t.additionalProperty}}`},wB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:fB,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} === ${mB.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)}}};If.default=wB});var oT=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var vB=uo(),rT=dn(),Df=we(),sT=zf(),CB={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&&sT.default.code(new vB.KeywordCxt(r,sT.default,"additionalProperties"));let s=(0,rT.allSchemaProperties)(i);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=Df.mergeEvaluated.props(e,(0,Df.toHash)(s),r.props));let o=s.filter(p=>!(0,Df.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,rT.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)}}};Gf.default=CB});var pT=w($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var lT=dn(),uc=re(),uT=we(),cT=we(),AB={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,lT.allSchemaProperties)(i),l=o.filter(m=>(0,uT.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,cT.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,uT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",n,f=>{e.if((0,uc._)`${(0,lT.usePattern)(t,m)}.test(${f})`,()=>{let v=l.includes(m);v||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:cT.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())})})}}};$f.default=AB});var dT=w(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var bB=we(),yB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:i,it:n}=t;if((0,bB.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"}};Nf.default=yB});var hT=w(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var PB=dn(),jB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:PB.validateUnion,error:{message:"must match a schema in anyOf"}};Uf.default=jB});var gT=w(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var cc=re(),SB=we(),OB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,cc._)`{passingSchemas: ${t.passing}}`},xB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:OB,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,SB.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)})})}}};Lf.default=xB});var mT=w(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var TB=we(),MB={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,TB.alwaysValidSchema)(n,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Wf.default=MB});var vT=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var pc=re(),wT=we(),EB={message:({params:t})=>(0,pc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,pc._)`{failingKeyword: ${t.ifClause}}`},kB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:EB,code(t){let{gen:e,parentSchema:i,it:n}=t;i.then===void 0&&i.else===void 0&&(0,wT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=fT(n,"then"),r=fT(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 fT(t,e){let i=t.schema[e];return i!==void 0&&!(0,wT.alwaysValidSchema)(t,i)}Bf.default=kB});var CT=w(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var qB=we(),_B={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:i}){e.if===void 0&&(0,qB.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};Ff.default=_B});var AT=w(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var HB=Mf(),RB=Kx(),IB=Ef(),zB=Yx(),DB=Xx(),GB=nT(),$B=aT(),NB=zf(),UB=oT(),LB=pT(),WB=dT(),BB=hT(),FB=gT(),VB=mT(),JB=vT(),ZB=CT();function KB(t=!1){let e=[WB.default,BB.default,FB.default,VB.default,JB.default,ZB.default,$B.default,NB.default,GB.default,UB.default,LB.default];return t?e.push(RB.default,zB.default):e.push(HB.default,IB.default),e.push(DB.default),e}Vf.default=KB});var bT=w(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var ii=re(),QB={message:({schemaCode:t})=>(0,ii.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ii._)`{format: ${t}}`},YB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:QB,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})`}}}};Jf.default=YB});var yT=w(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var XB=bT(),eF=[XB.default];Zf.default=eF});var PT=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 ST=w(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var iF=qx(),nF=Fx(),tF=AT(),aF=yT(),jT=PT(),rF=[iF.default,nF.default,(0,tF.default)(),aF.default,jT.metadataVocabulary,jT.contentVocabulary];Kf.default=rF});var xT=w(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.DiscrError=void 0;var OT;(function(t){t.Tag="tag",t.Mapping="mapping"})(OT||(dc.DiscrError=OT={}))});var MT=w(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var Hr=re(),Qf=xT(),TT=Zu(),sF=co(),oF=we(),lF={message:({params:{discrError:t,tagName:e}})=>t===Qf.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}}`},uF={keyword:"discriminator",type:"object",schemaType:"object",error:lF,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:Qf.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:Qf.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{cF.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 ew=w((Ue,Xf)=>{"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 pF=Ox(),dF=ST(),hF=MT(),kT=ET(),gF=["/properties"],hc="http://json-schema.org/draft-07/schema",Rr=class extends pF.default{_addVocabularies(){super._addVocabularies(),dF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(hF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(kT,gF):kT;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;Xf.exports=Ue=Rr;Xf.exports.Ajv=Rr;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Rr;var mF=uo();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return mF.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 fF=Vu();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return fF.default}});var wF=co();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return wF.default}})});var GT=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(RT,aw),time:Gn(nw(!0),rw),"date-time":Gn(qT(!0),zT),"iso-time":Gn(nw(),IT),"iso-date-time":Gn(qT(),DT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:PF,"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:EF,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:jF,int32:{type:"number",validate:xF},int64:{type:"number",validate:TF},float:{type:"number",validate:HT},double:{type:"number",validate:HT},password:!0,binary:!0};$n.fastFormats={...$n.fullFormats,date:Gn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,aw),time:Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,rw),"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,zT),"iso-time":Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,IT),"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,DT),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 vF(t){return t%4===0&&(t%100!==0||t%400===0)}var CF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,AF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function RT(t){let e=CF.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&&vF(i)?29:AF[n])}function aw(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 rw(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 IT(t,e){if(!(t&&e))return;let i=iw.exec(t),n=iw.exec(e);if(i&&n)return t=i[1]+i[2]+i[3],e=n[1]+n[2]+n[3],t>e?1:t=SF}function TF(t){return Number.isInteger(t)}function HT(){return!0}var MF=/[^\\]\\Z/;function EF(t){if(MF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var $T=w(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.formatLimitDefinition=void 0;var kF=ew(),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}},qF={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:qF,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 kF.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 _F=t=>(t.addKeyword(zr.formatLimitDefinition),t);zr.default=_F});var WT=w((So,LT)=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var Dr=GT(),HF=$T(),sw=re(),NT=new sw.Name("fullFormats"),RF=new sw.Name("fastFormats"),ow=(t,e={keywords:!0})=>{if(Array.isArray(e))return UT(t,e,Dr.fullFormats,NT),t;let[i,n]=e.mode==="fast"?[Dr.fastFormats,RF]:[Dr.fullFormats,NT],a=e.formats||Dr.formatNames;return UT(t,a,i,n),e.keywords&&(0,HF.default)(t),t};ow.get=(t,e="full")=>{let n=(e==="fast"?Dr.fastFormats:Dr.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function UT(t,e,i,n){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,sw._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,i[s])}LT.exports=So=ow;Object.defineProperty(So,"__esModule",{value:!0});So.default=ow});var rM=w((ose,aM)=>{var tM=require("stream").Stream,LF=require("util");aM.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=[]}LF.inherits(xn,tM);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=tM.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 uM=w((lse,lM)=>{var WF=require("util"),oM=require("stream").Stream,sM=rM();lM.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}WF.inherits(Ke,oM);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 sM)){var i=sM.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 oM.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 cM=w((use,BF)=>{BF.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 dM=w((cse,pM)=>{pM.exports=cM()});var mM=w(Bi=>{"use strict";var yc=dM(),FF=require("path").extname,hM=/^\s*([^;\s]*)(?:;|\s|$)/,VF=/^text\//i;Bi.charset=gM;Bi.charsets={lookup:gM};Bi.contentType=JF;Bi.extension=ZF;Bi.extensions=Object.create(null);Bi.lookup=KF;Bi.types=Object.create(null);QF(Bi.extensions,Bi.types);function gM(t){if(!t||typeof t!="string")return!1;var e=hM.exec(t),i=e&&yc[e[1].toLowerCase()];return i&&i.charset?i.charset:e&&VF.test(e[1])?"UTF-8":!1}function JF(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Bi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var i=Bi.charset(e);i&&(e+="; charset="+i.toLowerCase())}return e}function ZF(t){if(!t||typeof t!="string")return!1;var e=hM.exec(t),i=e&&Bi.extensions[e[1].toLowerCase()];return!i||!i.length?!1:i[0]}function KF(t){if(!t||typeof t!="string")return!1;var e=FF("x."+t).toLowerCase().substr(1);return e&&Bi.types[e]||!1}function QF(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 wM=w((dse,fM)=>{fM.exports=YF;function YF(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var dw=w((hse,CM)=>{var vM=wM();CM.exports=XF;function XF(t){var e=!1;return vM(function(){e=!0}),function(n,a){e?t(n,a):vM(function(){t(n,a)})}}});var hw=w((gse,AM)=>{AM.exports=eV;function eV(t){Object.keys(t.jobs).forEach(iV.bind(t)),t.jobs={}}function iV(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var gw=w((mse,yM)=>{var bM=dw(),nV=hw();yM.exports=tV;function tV(t,e,i,n){var a=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[a]=aV(e,a,t[a],function(r,s){a in i.jobs&&(delete i.jobs[a],r?nV(i):i.results[a]=s,n(r,i.results))})}function aV(t,e,i,n){var a;return t.length==2?a=t(i,bM(n)):a=t(i,e,bM(n)),a}});var mw=w((fse,PM)=>{PM.exports=rV;function rV(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 fw=w((wse,jM)=>{var sV=hw(),oV=dw();jM.exports=lV;function lV(t){Object.keys(this.jobs).length&&(this.index=this.size,sV(this),oV(t)(null,this.results))}});var OM=w((vse,SM)=>{var uV=gw(),cV=mw(),pV=fw();SM.exports=dV;function dV(t,e,i){for(var n=cV(t);n.index<(n.keyedList||t).length;)uV(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 pV.bind(n,i)}});var ww=w((Cse,Pc)=>{var xM=gw(),hV=mw(),gV=fw();Pc.exports=mV;Pc.exports.ascending=TM;Pc.exports.descending=fV;function mV(t,e,i,n){var a=hV(t,i);return xM(t,e,a,function r(s,o){if(s){n(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){xM(t,e,a,r);return}n(null,a.results)}),gV.bind(a,n)}function TM(t,e){return te?1:0}function fV(t,e){return-1*TM(t,e)}});var EM=w((Ase,MM)=>{var wV=ww();MM.exports=vV;function vV(t,e,i){return wV(t,e,null,i)}});var qM=w((bse,kM)=>{kM.exports={parallel:OM(),serial:EM(),serialOrdered:ww()}});var vw=w((yse,_M)=>{"use strict";_M.exports=Object});var RM=w((Pse,HM)=>{"use strict";HM.exports=Error});var zM=w((jse,IM)=>{"use strict";IM.exports=EvalError});var GM=w((Sse,DM)=>{"use strict";DM.exports=RangeError});var NM=w((Ose,$M)=>{"use strict";$M.exports=ReferenceError});var LM=w((xse,UM)=>{"use strict";UM.exports=SyntaxError});var It=w((Tse,WM)=>{"use strict";WM.exports=TypeError});var FM=w((Mse,BM)=>{"use strict";BM.exports=URIError});var JM=w((Ese,VM)=>{"use strict";VM.exports=Math.abs});var KM=w((kse,ZM)=>{"use strict";ZM.exports=Math.floor});var YM=w((qse,QM)=>{"use strict";QM.exports=Math.max});var eE=w((_se,XM)=>{"use strict";XM.exports=Math.min});var nE=w((Hse,iE)=>{"use strict";iE.exports=Math.pow});var aE=w((Rse,tE)=>{"use strict";tE.exports=Math.round});var sE=w((Ise,rE)=>{"use strict";rE.exports=Number.isNaN||function(e){return e!==e}});var lE=w((zse,oE)=>{"use strict";var CV=sE();oE.exports=function(e){return CV(e)||e===0?e:e<0?-1:1}});var cE=w((Dse,uE)=>{"use strict";uE.exports=Object.getOwnPropertyDescriptor});var Cw=w((Gse,pE)=>{"use strict";var jc=cE();if(jc)try{jc([],"length")}catch{jc=null}pE.exports=jc});var hE=w(($se,dE)=>{"use strict";var Sc=Object.defineProperty||!1;if(Sc)try{Sc({},"a",{value:1})}catch{Sc=!1}dE.exports=Sc});var Aw=w((Nse,gE)=>{"use strict";gE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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 wE=w((Use,fE)=>{"use strict";var mE=typeof Symbol<"u"&&Symbol,AV=Aw();fE.exports=function(){return typeof mE!="function"||typeof Symbol!="function"||typeof mE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:AV()}});var bw=w((Lse,vE)=>{"use strict";vE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var yw=w((Wse,CE)=>{"use strict";var bV=vw();CE.exports=bV.getPrototypeOf||null});var yE=w((Bse,bE)=>{"use strict";var yV="Function.prototype.bind called on incompatible ",PV=Object.prototype.toString,jV=Math.max,SV="[object Function]",AE=function(e,i){for(var n=[],a=0;a{"use strict";var TV=yE();PE.exports=Function.prototype.bind||TV});var Oc=w((Vse,jE)=>{"use strict";jE.exports=Function.prototype.call});var Pw=w((Jse,SE)=>{"use strict";SE.exports=Function.prototype.apply});var xE=w((Zse,OE)=>{"use strict";OE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ME=w((Kse,TE)=>{"use strict";var MV=xo(),EV=Pw(),kV=Oc(),qV=xE();TE.exports=qV||MV.call(kV,EV)});var jw=w((Qse,EE)=>{"use strict";var _V=xo(),HV=It(),RV=Oc(),IV=ME();EE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new HV("a function is required");return IV(_V,RV,e)}});var IE=w((Yse,RE)=>{"use strict";var zV=jw(),kE=Cw(),_E;try{_E=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Sw=!!_E&&kE&&kE(Object.prototype,"__proto__"),HE=Object,qE=HE.getPrototypeOf;RE.exports=Sw&&typeof Sw.get=="function"?zV([Sw.get]):typeof qE=="function"?function(e){return qE(e==null?e:HE(e))}:!1});var NE=w((Xse,$E)=>{"use strict";var zE=bw(),DE=yw(),GE=IE();$E.exports=zE?function(e){return zE(e)}:DE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return DE(e)}:GE?function(e){return GE(e)}:null});var xc=w((eoe,UE)=>{"use strict";var DV=Function.prototype.call,GV=Object.prototype.hasOwnProperty,$V=xo();UE.exports=$V.call(DV,GV)});var ko=w((ioe,JE)=>{"use strict";var pe,NV=vw(),UV=RM(),LV=zM(),WV=GM(),BV=NM(),Ur=LM(),Nr=It(),FV=FM(),VV=JM(),JV=KM(),ZV=YM(),KV=eE(),QV=nE(),YV=aE(),XV=lE(),FE=Function,Ow=function(t){try{return FE('"use strict"; return ('+t+").constructor;")()}catch{}},To=Cw(),eJ=hE(),xw=function(){throw new Nr},iJ=To?(function(){try{return arguments.callee,xw}catch{try{return To(arguments,"callee").get}catch{return xw}}})():xw,Gr=wE()(),gi=NE(),nJ=yw(),tJ=bw(),VE=Pw(),Mo=Oc(),$r={},aJ=typeof Uint8Array>"u"||!gi?pe:gi(Uint8Array),Ea={__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%":UV,"%eval%":eval,"%EvalError%":LV,"%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%":FE,"%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%":NV,"%Object.getOwnPropertyDescriptor%":To,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":WV,"%ReferenceError%":BV,"%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%":iJ,"%TypedArray%":aJ,"%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%":FV,"%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%":VE,"%Object.defineProperty%":eJ,"%Object.getPrototypeOf%":nJ,"%Math.abs%":VV,"%Math.floor%":JV,"%Math.max%":ZV,"%Math.min%":KV,"%Math.pow%":QV,"%Math.round%":YV,"%Math.sign%":XV,"%Reflect.getPrototypeOf%":tJ};if(gi)try{null.error}catch(t){LE=gi(gi(t)),Ea["%Error.prototype%"]=LE}var LE,rJ=function t(e){var i;if(e==="%AsyncFunction%")i=Ow("async function () {}");else if(e==="%GeneratorFunction%")i=Ow("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=Ow("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 Ea[e]=i,i},WE={__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(),sJ=Eo.call(Mo,Array.prototype.concat),oJ=Eo.call(VE,Array.prototype.splice),BE=Eo.call(Mo,String.prototype.replace),Mc=Eo.call(Mo,String.prototype.slice),lJ=Eo.call(Mo,RegExp.prototype.exec),uJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,cJ=/\\(\\)?/g,pJ=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 BE(e,uJ,function(r,s,o,l){a[a.length]=o?BE(l,cJ,"$1"):s||r}),a},dJ=function(e,i){var n=e,a;if(Tc(WE,n)&&(a=WE[n],n="%"+a[0]+"%"),Tc(Ea,n)){var r=Ea[n];if(r===$r&&(r=rJ(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!")};JE.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(lJ(/^%?[^%]*%?$/,e)===null)throw new Ur("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=pJ(e),a=n.length>0?n[0]:"",r=dJ("%"+a+"%",i),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],oJ(n,sJ([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&&(Ea[s]=o)}}return o}});var KE=w((noe,ZE)=>{"use strict";var hJ=Aw();ZE.exports=function(){return hJ()&&!!Symbol.toStringTag}});var XE=w((toe,YE)=>{"use strict";var gJ=ko(),QE=gJ("%Object.defineProperty%",!0),mJ=KE()(),fJ=xc(),wJ=It(),Ec=mJ?Symbol.toStringTag:null;YE.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 wJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Ec&&(n||!fJ(e,Ec))&&(QE?QE(e,Ec,{configurable:!a,enumerable:!1,value:i,writable:!1}):e[Ec]=i)}});var ik=w((aoe,ek)=>{"use strict";ek.exports=function(t,e){return Object.keys(e).forEach(function(i){t[i]=t[i]||e[i]}),t}});var tk=w((roe,nk)=>{"use strict";var kw=uM(),vJ=require("util"),Tw=require("path"),CJ=require("http"),AJ=require("https"),bJ=require("url").parse,yJ=require("fs"),PJ=require("stream").Stream,jJ=require("crypto"),Mw=mM(),SJ=qM(),OJ=XE(),zt=xc(),Ew=ik();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],kw.call(this),t=t||{};for(var e in t)this[e]=t[e]}vJ.inherits(Ce,kw);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=kw.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 PJ))&&(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)):yJ.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"&&Ew(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=Tw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?i=Tw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&zt(t,"httpVersion")&&(i=Tw.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=Mw.lookup(t.name)),!i&&t&&t.path&&(i=Mw.lookup(t.path)),!i&&t&&t.readable&&zt(t,"httpVersion")&&(i=t.headers["content-type"]),!i&&(e.filepath||e.filename)&&(i=Mw.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,ka=Br*24,xJ=ka*7,TJ=ka*365.25;ak.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return MJ(t);if(i==="number"&&isFinite(t))return e.long?kJ(t):EJ(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function MJ(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*TJ;case"weeks":case"week":case"w":return i*xJ;case"days":case"day":case"d":return i*ka;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 EJ(t){var e=Math.abs(t);return e>=ka?Math.round(t/ka)+"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 kJ(t){var e=Math.abs(t);return e>=ka?kc(t,e,ka,"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 _w=w((ooe,rk)=>{function qJ(t){i.debug=i,i.default=i,i.coerce=l,i.disable=s,i.enable=a,i.enabled=o,i.humanize=qw(),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}rk.exports=qJ});var sk=w((Fi,qc)=>{Fi.formatArgs=HJ;Fi.save=RJ;Fi.load=IJ;Fi.useColors=_J;Fi.storage=zJ();Fi.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`."))}})();Fi.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 _J(){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 HJ(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)}Fi.log=console.debug||console.log||(()=>{});function RJ(t){try{t?Fi.storage.setItem("debug",t):Fi.storage.removeItem("debug")}catch{}}function IJ(){let t;try{t=Fi.storage.getItem("debug")||Fi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function zJ(){try{return localStorage}catch{}}qc.exports=_w()(Fi);var{formatters:DJ}=qc.exports;DJ.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var lk=w((mi,Hc)=>{var GJ=require("tty"),_c=require("util");mi.init=FJ;mi.log=LJ;mi.formatArgs=NJ;mi.save=WJ;mi.load=BJ;mi.useColors=$J;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 $J(){return"colors"in mi.inspectOpts?!!mi.inspectOpts.colors:GJ.isatty(process.stderr.fd)}function NJ(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 MB={keyword:"dependencies",type:"object",schemaType:"object",error:Dn.error,code(t){let[e,i]=EB(t);cT(t,e),pT(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 cT(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,xo.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,xo.checkReportMissingProp)(t,u)}):(i.if((0,$f._)`${l} && (${(0,xo.checkMissingProp)(t,o,r)})`),(0,xo.reportMissingProp)(t,r),i.else())}}Dn.validatePropertyDeps=cT;function pT(t,e=t.schema){let{gen:i,data:n,keyword:a,it:r}=t,s=i.name("valid");for(let o in e)(0,TB.alwaysValidSchema)(r,e[o])||(i.if((0,xo.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=pT;Dn.default=MB});var gT=w(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var hT=re(),kB=we(),qB={message:"property name must be valid",params:({params:t})=>(0,hT._)`{propertyName: ${t.propertyName}}`},_B={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:qB,code(t){let{gen:e,schema:i,data:n,it:a}=t;if((0,kB.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,hT.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Nf.default=_B});var Lf=w(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var gc=dn(),Sn=re(),HB=lt(),mc=we(),IB={message:"must NOT have additional properties",params:({params:t})=>(0,Sn._)`{additionalProperty: ${t.additionalProperty}}`},RB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:IB,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,mc.alwaysValidSchema)(s,i))return;let u=(0,gc.allSchemaProperties)(n.properties),c=(0,gc.allSchemaProperties)(n.patternProperties);p(),t.ok((0,Sn._)`${r} === ${HB.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,mc.schemaRefOrVal)(s,n.properties,"properties");v=(0,gc.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,gc.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,mc.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:mc.Type.Str};y===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};Uf.default=RB});var wT=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var zB=ho(),mT=dn(),Wf=we(),fT=Lf(),DB={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&&fT.default.code(new zB.KeywordCxt(r,fT.default,"additionalProperties"));let s=(0,mT.allSchemaProperties)(i);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=Wf.mergeEvaluated.props(e,(0,Wf.toHash)(s),r.props));let o=s.filter(p=>!(0,Wf.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,mT.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)}}};Bf.default=DB});var bT=w(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var vT=dn(),fc=re(),CT=we(),AT=we(),GB={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,vT.allSchemaProperties)(i),l=o.filter(m=>(0,CT.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 fc.Name)&&(r.props=(0,AT.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,CT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",n,f=>{e.if((0,fc._)`${(0,vT.usePattern)(t,m)}.test(${f})`,()=>{let v=l.includes(m);v||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:AT.Type.Str},c),r.opts.unevaluated&&p!==!0?e.assign((0,fc._)`${p}[${f}]`,!0):!v&&!r.allErrors&&e.if((0,fc.not)(c),()=>e.break())})})}}};Ff.default=GB});var yT=w(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var $B=we(),NB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:i,it:n}=t;if((0,$B.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"}};Vf.default=NB});var PT=w(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var UB=dn(),LB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:UB.validateUnion,error:{message:"must match a schema in anyOf"}};Jf.default=LB});var jT=w(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var wc=re(),WB=we(),BB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,wc._)`{passingSchemas: ${t.passing}}`},FB={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,WB.alwaysValidSchema)(a,c)?e.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,wc._)`${l} && ${s}`).assign(s,!1).assign(o,(0,wc._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),d&&t.mergeEvaluated(d,wc.Name)})})}}};Zf.default=FB});var ST=w(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var VB=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,VB.alwaysValidSchema)(n,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Kf.default=JB});var TT=w(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var vc=re(),xT=we(),ZB={message:({params:t})=>(0,vc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,vc._)`{failingKeyword: ${t.ifClause}}`},KB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:ZB,code(t){let{gen:e,parentSchema:i,it:n}=t;i.then===void 0&&i.else===void 0&&(0,xT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=OT(n,"then"),r=OT(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,vc.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,vc._)`${c}`):t.setParams({ifClause:c})}}}};function OT(t,e){let i=t.schema[e];return i!==void 0&&!(0,xT.alwaysValidSchema)(t,i)}Qf.default=KB});var MT=w(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var QB=we(),YB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:i}){e.if===void 0&&(0,QB.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};Yf.default=YB});var ET=w(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var XB=If(),eF=sT(),iF=Rf(),nF=lT(),tF=uT(),aF=dT(),rF=gT(),sF=Lf(),oF=wT(),lF=bT(),uF=yT(),cF=PT(),pF=jT(),dF=ST(),hF=TT(),gF=MT();function mF(t=!1){let e=[uF.default,cF.default,pF.default,dF.default,hF.default,gF.default,rF.default,sF.default,aF.default,oF.default,lF.default];return t?e.push(eF.default,nF.default):e.push(XB.default,iF.default),e.push(tF.default),e}Xf.default=mF});var kT=w(ew=>{"use strict";Object.defineProperty(ew,"__esModule",{value:!0});var ii=re(),fF={message:({schemaCode:t})=>(0,ii.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ii._)`{format: ${t}}`},wF={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:fF,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})`}}}};ew.default=wF});var qT=w(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});var vF=kT(),CF=[vF.default];iw.default=CF});var _T=w(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.contentVocabulary=Ir.metadataVocabulary=void 0;Ir.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ir.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var IT=w(nw=>{"use strict";Object.defineProperty(nw,"__esModule",{value:!0});var AF=Ux(),bF=nT(),yF=ET(),PF=qT(),HT=_T(),jF=[AF.default,bF.default,(0,yF.default)(),PF.default,HT.metadataVocabulary,HT.contentVocabulary];nw.default=jF});var zT=w(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.DiscrError=void 0;var RT;(function(t){t.Tag="tag",t.Mapping="mapping"})(RT||(Cc.DiscrError=RT={}))});var GT=w(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});var Rr=re(),tw=zT(),DT=nc(),SF=go(),OF=we(),xF={message:({params:{discrError:t,tagName:e}})=>t===tw.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:i}})=>(0,Rr._)`{error: ${t}, tag: ${i}, tagValue: ${e}}`},TF={keyword:"discriminator",type:"object",schemaType:"object",error:xF,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,Rr._)`${i}${(0,Rr.getProperty)(o)}`);e.if((0,Rr._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:tw.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,Rr._)`${u} === ${g}`),e.assign(l,p(h[g]));e.else(),t.error(!1,{discrError:tw.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,Rr.Name),g}function d(){var h;let g={},m=v(a),f=!0;for(let b=0;b{MF.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 sw=w((Ue,rw)=>{"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=Rx(),kF=IT(),qF=GT(),NT=$T(),_F=["/properties"],Ac="http://json-schema.org/draft-07/schema",zr=class extends EF.default{_addVocabularies(){super._addVocabularies(),kF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(qF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(NT,_F):NT;this.addMetaSchema(e,Ac,!1),this.refs["http://json-schema.org/schema"]=Ac}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ac)?Ac:void 0)}};Ue.Ajv=zr;rw.exports=Ue=zr;rw.exports.Ajv=zr;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=zr;var HF=ho();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return HF.KeywordCxt}});var Dr=re();Object.defineProperty(Ue,"_",{enumerable:!0,get:function(){return Dr._}});Object.defineProperty(Ue,"str",{enumerable:!0,get:function(){return Dr.str}});Object.defineProperty(Ue,"stringify",{enumerable:!0,get:function(){return Dr.stringify}});Object.defineProperty(Ue,"nil",{enumerable:!0,get:function(){return Dr.nil}});Object.defineProperty(Ue,"Name",{enumerable:!0,get:function(){return Dr.Name}});Object.defineProperty(Ue,"CodeGen",{enumerable:!0,get:function(){return Dr.CodeGen}});var IF=ec();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return IF.default}});var RF=go();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return RF.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(BT,cw),time:Gn(lw(!0),pw),"date-time":Gn(UT(!0),VT),"iso-time":Gn(lw(),FT),"iso-date-time":Gn(UT(),JT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:UF,"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:ZF,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:LF,int32:{type:"number",validate:FF},int64:{type:"number",validate:VF},float:{type:"number",validate:WT},double:{type:"number",validate:WT},password:!0,binary:!0};$n.fastFormats={...$n.fullFormats,date:Gn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,cw),time:Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,pw),"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,VT),"iso-time":Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,FT),"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,JT),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 zF(t){return t%4===0&&(t%100!==0||t%400===0)}var DF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,GF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function BT(t){let e=DF.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&&zF(i)?29:GF[n])}function cw(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 pw(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 FT(t,e){if(!(t&&e))return;let i=ow.exec(t),n=ow.exec(e);if(i&&n)return t=i[1]+i[2]+i[3],e=n[1]+n[2]+n[3],t>e?1:t=WF}function VF(t){return Number.isInteger(t)}function WT(){return!0}var JF=/[^\\]\\Z/;function ZF(t){if(JF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var KT=w(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.formatLimitDefinition=void 0;var KF=sw(),On=re(),Rt=On.operators,bc={formatMaximum:{okStr:"<=",ok:Rt.LTE,fail:Rt.GT},formatMinimum:{okStr:">=",ok:Rt.GTE,fail:Rt.LT},formatExclusiveMaximum:{okStr:"<",ok:Rt.LT,fail:Rt.GTE},formatExclusiveMinimum:{okStr:">",ok:Rt.GT,fail:Rt.LTE}},QF={message:({keyword:t,schemaCode:e})=>(0,On.str)`should be ${bc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,On._)`{comparison: ${bc[t].okStr}, limit: ${e}}`};Gr.formatLimitDefinition={keyword:Object.keys(bc),type:"string",schemaType:"string",$data:!0,error:QF,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 KF.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}) ${bc[a].fail} 0`}},dependencies:["format"]};var YF=t=>(t.addKeyword(Gr.formatLimitDefinition),t);Gr.default=YF});var eM=w((To,XT)=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});var $r=ZT(),XF=KT(),dw=re(),QT=new dw.Name("fullFormats"),eV=new dw.Name("fastFormats"),hw=(t,e={keywords:!0})=>{if(Array.isArray(e))return YT(t,e,$r.fullFormats,QT),t;let[i,n]=e.mode==="fast"?[$r.fastFormats,eV]:[$r.fullFormats,QT],a=e.formats||$r.formatNames;return YT(t,a,i,n),e.keywords&&(0,XF.default)(t),t};hw.get=(t,e="full")=>{let n=(e==="fast"?$r.fastFormats:$r.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function YT(t,e,i,n){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,dw._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,i[s])}XT.exports=To=hw;Object.defineProperty(To,"__esModule",{value:!0});To.default=hw});var mM=w((Fse,gM)=>{var hM=require("stream").Stream,lV=require("util");gM.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=[]}lV.inherits(xn,hM);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=hM.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 CM=w((Vse,vM)=>{var uV=require("util"),wM=require("stream").Stream,fM=mM();vM.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}uV.inherits(Ke,wM);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 fM)){var i=fM.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 wM.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 AM=w((Jse,cV)=>{cV.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 yM=w((Zse,bM)=>{bM.exports=AM()});var SM=w(Bi=>{"use strict";var Mc=yM(),pV=require("path").extname,PM=/^\s*([^;\s]*)(?:;|\s|$)/,dV=/^text\//i;Bi.charset=jM;Bi.charsets={lookup:jM};Bi.contentType=hV;Bi.extension=gV;Bi.extensions=Object.create(null);Bi.lookup=mV;Bi.types=Object.create(null);fV(Bi.extensions,Bi.types);function jM(t){if(!t||typeof t!="string")return!1;var e=PM.exec(t),i=e&&Mc[e[1].toLowerCase()];return i&&i.charset?i.charset:e&&dV.test(e[1])?"UTF-8":!1}function hV(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Bi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var i=Bi.charset(e);i&&(e+="; charset="+i.toLowerCase())}return e}function gV(t){if(!t||typeof t!="string")return!1;var e=PM.exec(t),i=e&&Bi.extensions[e[1].toLowerCase()];return!i||!i.length?!1:i[0]}function mV(t){if(!t||typeof t!="string")return!1;var e=pV("x."+t).toLowerCase().substr(1);return e&&Bi.types[e]||!1}function fV(t,e){var i=["nginx","apache",void 0,"iana"];Object.keys(Mc).forEach(function(a){var r=Mc[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 xM=w((Qse,OM)=>{OM.exports=wV;function wV(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var vw=w((Yse,MM)=>{var TM=xM();MM.exports=vV;function vV(t){var e=!1;return TM(function(){e=!0}),function(n,a){e?t(n,a):TM(function(){t(n,a)})}}});var Cw=w((Xse,EM)=>{EM.exports=CV;function CV(t){Object.keys(t.jobs).forEach(AV.bind(t)),t.jobs={}}function AV(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var Aw=w((eoe,qM)=>{var kM=vw(),bV=Cw();qM.exports=yV;function yV(t,e,i,n){var a=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[a]=PV(e,a,t[a],function(r,s){a in i.jobs&&(delete i.jobs[a],r?bV(i):i.results[a]=s,n(r,i.results))})}function PV(t,e,i,n){var a;return t.length==2?a=t(i,kM(n)):a=t(i,e,kM(n)),a}});var bw=w((ioe,_M)=>{_M.exports=jV;function jV(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 yw=w((noe,HM)=>{var SV=Cw(),OV=vw();HM.exports=xV;function xV(t){Object.keys(this.jobs).length&&(this.index=this.size,SV(this),OV(t)(null,this.results))}});var RM=w((toe,IM)=>{var TV=Aw(),MV=bw(),EV=yw();IM.exports=kV;function kV(t,e,i){for(var n=MV(t);n.index<(n.keyedList||t).length;)TV(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 Pw=w((aoe,Ec)=>{var zM=Aw(),qV=bw(),_V=yw();Ec.exports=HV;Ec.exports.ascending=DM;Ec.exports.descending=IV;function HV(t,e,i,n){var a=qV(t,i);return zM(t,e,a,function r(s,o){if(s){n(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){zM(t,e,a,r);return}n(null,a.results)}),_V.bind(a,n)}function DM(t,e){return te?1:0}function IV(t,e){return-1*DM(t,e)}});var $M=w((roe,GM)=>{var RV=Pw();GM.exports=zV;function zV(t,e,i){return RV(t,e,null,i)}});var UM=w((soe,NM)=>{NM.exports={parallel:RM(),serial:$M(),serialOrdered:Pw()}});var jw=w((ooe,LM)=>{"use strict";LM.exports=Object});var BM=w((loe,WM)=>{"use strict";WM.exports=Error});var VM=w((uoe,FM)=>{"use strict";FM.exports=EvalError});var ZM=w((coe,JM)=>{"use strict";JM.exports=RangeError});var QM=w((poe,KM)=>{"use strict";KM.exports=ReferenceError});var XM=w((doe,YM)=>{"use strict";YM.exports=SyntaxError});var Dt=w((hoe,eE)=>{"use strict";eE.exports=TypeError});var nE=w((goe,iE)=>{"use strict";iE.exports=URIError});var aE=w((moe,tE)=>{"use strict";tE.exports=Math.abs});var sE=w((foe,rE)=>{"use strict";rE.exports=Math.floor});var lE=w((woe,oE)=>{"use strict";oE.exports=Math.max});var cE=w((voe,uE)=>{"use strict";uE.exports=Math.min});var dE=w((Coe,pE)=>{"use strict";pE.exports=Math.pow});var gE=w((Aoe,hE)=>{"use strict";hE.exports=Math.round});var fE=w((boe,mE)=>{"use strict";mE.exports=Number.isNaN||function(e){return e!==e}});var vE=w((yoe,wE)=>{"use strict";var DV=fE();wE.exports=function(e){return DV(e)||e===0?e:e<0?-1:1}});var AE=w((Poe,CE)=>{"use strict";CE.exports=Object.getOwnPropertyDescriptor});var Sw=w((joe,bE)=>{"use strict";var kc=AE();if(kc)try{kc([],"length")}catch{kc=null}bE.exports=kc});var PE=w((Soe,yE)=>{"use strict";var qc=Object.defineProperty||!1;if(qc)try{qc({},"a",{value:1})}catch{qc=!1}yE.exports=qc});var Ow=w((Ooe,jE)=>{"use strict";jE.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 xE=w((xoe,OE)=>{"use strict";var SE=typeof Symbol<"u"&&Symbol,GV=Ow();OE.exports=function(){return typeof SE!="function"||typeof Symbol!="function"||typeof SE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:GV()}});var xw=w((Toe,TE)=>{"use strict";TE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Tw=w((Moe,ME)=>{"use strict";var $V=jw();ME.exports=$V.getPrototypeOf||null});var qE=w((Eoe,kE)=>{"use strict";var NV="Function.prototype.bind called on incompatible ",UV=Object.prototype.toString,LV=Math.max,WV="[object Function]",EE=function(e,i){for(var n=[],a=0;a{"use strict";var VV=qE();_E.exports=Function.prototype.bind||VV});var _c=w((qoe,HE)=>{"use strict";HE.exports=Function.prototype.call});var Mw=w((_oe,IE)=>{"use strict";IE.exports=Function.prototype.apply});var zE=w((Hoe,RE)=>{"use strict";RE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var GE=w((Ioe,DE)=>{"use strict";var JV=Eo(),ZV=Mw(),KV=_c(),QV=zE();DE.exports=QV||JV.call(KV,ZV)});var Ew=w((Roe,$E)=>{"use strict";var YV=Eo(),XV=Dt(),eJ=_c(),iJ=GE();$E.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new XV("a function is required");return iJ(YV,eJ,e)}});var FE=w((zoe,BE)=>{"use strict";var nJ=Ew(),NE=Sw(),LE;try{LE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var kw=!!LE&&NE&&NE(Object.prototype,"__proto__"),WE=Object,UE=WE.getPrototypeOf;BE.exports=kw&&typeof kw.get=="function"?nJ([kw.get]):typeof UE=="function"?function(e){return UE(e==null?e:WE(e))}:!1});var QE=w((Doe,KE)=>{"use strict";var VE=xw(),JE=Tw(),ZE=FE();KE.exports=VE?function(e){return VE(e)}:JE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return JE(e)}:ZE?function(e){return ZE(e)}:null});var Hc=w((Goe,YE)=>{"use strict";var tJ=Function.prototype.call,aJ=Object.prototype.hasOwnProperty,rJ=Eo();YE.exports=rJ.call(tJ,aJ)});var Ho=w(($oe,ak)=>{"use strict";var pe,sJ=jw(),oJ=BM(),lJ=VM(),uJ=ZM(),cJ=QM(),Wr=XM(),Lr=Dt(),pJ=nE(),dJ=aE(),hJ=sE(),gJ=lE(),mJ=cE(),fJ=dE(),wJ=gE(),vJ=vE(),nk=Function,qw=function(t){try{return nk('"use strict"; return ('+t+").constructor;")()}catch{}},ko=Sw(),CJ=PE(),_w=function(){throw new Lr},AJ=ko?(function(){try{return arguments.callee,_w}catch{try{return ko(arguments,"callee").get}catch{return _w}}})():_w,Nr=xE()(),mi=QE(),bJ=Tw(),yJ=xw(),tk=Mw(),qo=_c(),Ur={},PJ=typeof Uint8Array>"u"||!mi?pe:mi(Uint8Array),qa={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Nr&&mi?mi([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Ur,"%AsyncGenerator%":Ur,"%AsyncGeneratorFunction%":Ur,"%AsyncIteratorPrototype%":Ur,"%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%":oJ,"%eval%":eval,"%EvalError%":lJ,"%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%":nk,"%GeneratorFunction%":Ur,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Nr&&mi?mi(mi([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Nr||!mi?pe:mi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":sJ,"%Object.getOwnPropertyDescriptor%":ko,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":uJ,"%ReferenceError%":cJ,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Nr||!mi?pe:mi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Nr&&mi?mi(""[Symbol.iterator]()):pe,"%Symbol%":Nr?Symbol:pe,"%SyntaxError%":Wr,"%ThrowTypeError%":AJ,"%TypedArray%":PJ,"%TypeError%":Lr,"%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%":pJ,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":qo,"%Function.prototype.apply%":tk,"%Object.defineProperty%":CJ,"%Object.getPrototypeOf%":bJ,"%Math.abs%":dJ,"%Math.floor%":hJ,"%Math.max%":gJ,"%Math.min%":mJ,"%Math.pow%":fJ,"%Math.round%":wJ,"%Math.sign%":vJ,"%Reflect.getPrototypeOf%":yJ};if(mi)try{null.error}catch(t){XE=mi(mi(t)),qa["%Error.prototype%"]=XE}var XE,jJ=function t(e){var i;if(e==="%AsyncFunction%")i=qw("async function () {}");else if(e==="%GeneratorFunction%")i=qw("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=qw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&mi&&(i=mi(a.prototype))}return qa[e]=i,i},ek={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_o=Eo(),Ic=Hc(),SJ=_o.call(qo,Array.prototype.concat),OJ=_o.call(tk,Array.prototype.splice),ik=_o.call(qo,String.prototype.replace),Rc=_o.call(qo,String.prototype.slice),xJ=_o.call(qo,RegExp.prototype.exec),TJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,MJ=/\\(\\)?/g,EJ=function(e){var i=Rc(e,0,1),n=Rc(e,-1);if(i==="%"&&n!=="%")throw new Wr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new Wr("invalid intrinsic syntax, expected opening `%`");var a=[];return ik(e,TJ,function(r,s,o,l){a[a.length]=o?ik(l,MJ,"$1"):s||r}),a},kJ=function(e,i){var n=e,a;if(Ic(ek,n)&&(a=ek[n],n="%"+a[0]+"%"),Ic(qa,n)){var r=qa[n];if(r===Ur&&(r=jJ(n)),typeof r>"u"&&!i)throw new Lr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:r}}throw new Wr("intrinsic "+e+" does not exist!")};ak.exports=function(e,i){if(typeof e!="string"||e.length===0)throw new Lr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new Lr('"allowMissing" argument must be a boolean');if(xJ(/^%?[^%]*%?$/,e)===null)throw new Wr("`%` 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=kJ("%"+a+"%",i),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],OJ(n,SJ([0,1],u)));for(var c=1,p=!0;c=n.length){var m=ko(o,d);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else p=Ic(o,d),o=o[d];p&&!l&&(qa[s]=o)}}return o}});var sk=w((Noe,rk)=>{"use strict";var qJ=Ow();rk.exports=function(){return qJ()&&!!Symbol.toStringTag}});var uk=w((Uoe,lk)=>{"use strict";var _J=Ho(),ok=_J("%Object.defineProperty%",!0),HJ=sk()(),IJ=Hc(),RJ=Dt(),zc=HJ?Symbol.toStringTag:null;lk.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 RJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");zc&&(n||!IJ(e,zc))&&(ok?ok(e,zc,{configurable:!a,enumerable:!1,value:i,writable:!1}):e[zc]=i)}});var pk=w((Loe,ck)=>{"use strict";ck.exports=function(t,e){return Object.keys(e).forEach(function(i){t[i]=t[i]||e[i]}),t}});var hk=w((Woe,dk)=>{"use strict";var zw=CM(),zJ=require("util"),Hw=require("path"),DJ=require("http"),GJ=require("https"),$J=require("url").parse,NJ=require("fs"),UJ=require("stream").Stream,LJ=require("crypto"),Iw=SM(),WJ=UM(),BJ=uk(),Gt=Hc(),Rw=pk();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],zw.call(this),t=t||{};for(var e in t)this[e]=t[e]}zJ.inherits(Ce,zw);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=zw.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&&Gt(e,"httpVersion"))&&!(e instanceof UJ))&&(i.knownLength||this._valuesToMeasure.push(e))};Ce.prototype._lengthRetriever=function(t,e){Gt(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):NJ.stat(t.path,function(i,n){if(i){e(i);return}var a=n.size-(t.start?t.start:0);e(null,a)}):Gt(t,"httpVersion")?e(null,Number(t.headers["content-length"])):Gt(t,"httpModule")?(t.on("response",function(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"&&Rw(s,i.header);var o;for(var l in s)if(Gt(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+Ce.LINE_BREAK)}return"--"+this.getBoundary()+Ce.LINE_BREAK+r+Ce.LINE_BREAK};Ce.prototype._getContentDisposition=function(t,e){var i;if(typeof e.filepath=="string"?i=Hw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?i=Hw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&Gt(t,"httpVersion")&&(i=Hw.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=Iw.lookup(t.name)),!i&&t&&t.path&&(i=Iw.lookup(t.path)),!i&&t&&t.readable&&Gt(t,"httpVersion")&&(i=t.headers["content-type"]),!i&&(e.filepath||e.filename)&&(i=Iw.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)Gt(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 Br=1e3,Fr=Br*60,Vr=Fr*60,_a=Vr*24,FJ=_a*7,VJ=_a*365.25;gk.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?KJ(t):ZJ(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*VJ;case"weeks":case"week":case"w":return i*FJ;case"days":case"day":case"d":return i*_a;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Vr;case"minutes":case"minute":case"mins":case"min":case"m":return i*Fr;case"seconds":case"second":case"secs":case"sec":case"s":return i*Br;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function ZJ(t){var e=Math.abs(t);return e>=_a?Math.round(t/_a)+"d":e>=Vr?Math.round(t/Vr)+"h":e>=Fr?Math.round(t/Fr)+"m":e>=Br?Math.round(t/Br)+"s":t+"ms"}function KJ(t){var e=Math.abs(t);return e>=_a?Dc(t,e,_a,"day"):e>=Vr?Dc(t,e,Vr,"hour"):e>=Fr?Dc(t,e,Fr,"minute"):e>=Br?Dc(t,e,Br,"second"):t+" ms"}function Dc(t,e,i,n){var a=e>=i*1.5;return Math.round(t/i)+" "+n+(a?"s":"")}});var Gw=w((Foe,mk)=>{function QJ(t){i.debug=i,i.default=i,i.coerce=l,i.disable=s,i.enable=a,i.enabled=o,i.humanize=Dw(),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}mk.exports=QJ});var fk=w((Fi,Gc)=>{Fi.formatArgs=XJ;Fi.save=e4;Fi.load=i4;Fi.useColors=YJ;Fi.storage=n4();Fi.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`."))}})();Fi.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 XJ(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Gc.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)}Fi.log=console.debug||console.log||(()=>{});function e4(t){try{t?Fi.storage.setItem("debug",t):Fi.storage.removeItem("debug")}catch{}}function i4(){let t;try{t=Fi.storage.getItem("debug")||Fi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function n4(){try{return localStorage}catch{}}Gc.exports=Gw()(Fi);var{formatters:t4}=Gc.exports;t4.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var vk=w((fi,Nc)=>{var a4=require("tty"),$c=require("util");fi.init=p4;fi.log=l4;fi.formatArgs=s4;fi.save=u4;fi.load=c4;fi.useColors=r4;fi.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`.");fi.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(fi.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{}fi.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 r4(){return"colors"in fi.inspectOpts?!!fi.inspectOpts.colors:a4.isatty(process.stderr.fd)}function s4(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]=UJ()+e+" "+t[0]}function UJ(){return mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function LJ(...t){return process.stderr.write(_c.formatWithOptions(mi.inspectOpts,...t)+` -`)}function WJ(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function BJ(){return process.env.DEBUG}function FJ(t){t.inspectOpts={};let e=Object.keys(mi.inspectOpts);for(let i=0;ie.trim()).join(" ")};ok.O=function(t){return this.inspectOpts.colors=this.useColors,_c.inspect(t,this.inspectOpts)}});var qo=w((loe,Hw)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Hw.exports=sk():Hw.exports=lk()});var uk=w(Rw=>{"use strict";Object.defineProperty(Rw,"__esModule",{value:!0});function VJ(t){return function(e,i){return new Promise((n,a)=>{t.call(this,e,i,(r,s)=>{r?a(r):n(s)})})}}Rw.default=VJ});var dk=w((zw,pk)=>{"use strict";var ck=zw&&zw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},JJ=require("events"),ZJ=ck(qo()),KJ=ck(uk()),_o=ZJ.default("agent-base");function QJ(t){return!!t&&typeof t.addRequest=="function"}function Iw(){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 JJ.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:Iw()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Iw()?"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=Iw()),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),QJ(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=KJ.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={}));pk.exports=Rc});var hk=w(Ro=>{"use strict";var YJ=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});var XJ=YJ(qo()),Ho=XJ.default("https-proxy-agent:parse-proxy-response");function e4(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+"+Nc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=o4()+e+" "+t[0]}function o4(){return fi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function l4(...t){return process.stderr.write($c.formatWithOptions(fi.inspectOpts,...t)+` +`)}function u4(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function c4(){return process.env.DEBUG}function p4(t){t.inspectOpts={};let e=Object.keys(fi.inspectOpts);for(let i=0;ie.trim()).join(" ")};wk.O=function(t){return this.inspectOpts.colors=this.useColors,$c.inspect(t,this.inspectOpts)}});var Io=w((Voe,$w)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?$w.exports=fk():$w.exports=vk()});var Ck=w(Nw=>{"use strict";Object.defineProperty(Nw,"__esModule",{value:!0});function d4(t){return function(e,i){return new Promise((n,a)=>{t.call(this,e,i,(r,s)=>{r?a(r):n(s)})})}}Nw.default=d4});var yk=w((Lw,bk)=>{"use strict";var Ak=Lw&&Lw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},h4=require("events"),g4=Ak(Io()),m4=Ak(Ck()),Ro=g4.default("agent-base");function f4(t){return!!t&&typeof t.addRequest=="function"}function Uw(){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 Uc(t,e){return new Uc.Agent(t,e)}(function(t){class e extends h4.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:Uw()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Uw()?"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=Uw()),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),f4(h)){Ro("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?(Ro("Converting legacy callback function to promise"),this.promisifiedCallback=m4.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{Ro("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){Ro("Freeing socket %o %o",n.constructor.name,a),n.destroy()}destroy(){Ro("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Uc||(Uc={}));bk.exports=Uc});var Pk=w(Do=>{"use strict";var w4=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});var v4=w4(Io()),zo=v4.default("https-proxy-agent:parse-proxy-response");function C4(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){zo("onclose had error %o",p)}function l(){zo("onend")}function u(p){s(),zo("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=e4});var fk=w(qa=>{"use strict";var i4=qa&&qa.__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=qa&&qa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qa,"__esModule",{value:!0});var gk=Fr(require("net")),mk=Fr(require("tls")),n4=Fr(require("url")),t4=Fr(require("assert")),a4=Fr(qo()),r4=dk(),s4=Fr(hk()),Io=a4.default("https-proxy-agent:agent"),Dw=class extends r4.Agent{constructor(e){let i;if(typeof e=="string"?i=n4.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||u4(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 i4(this,void 0,void 0,function*(){let{proxy:n,secureProxy:a}=this,r;a?(Io("Creating `tls.Socket`: %o",n),r=mk.default.connect(n)):(Io("Creating `net.Socket`: %o",n),r=gk.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;l4(c,p)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let f of Object.keys(s))l+=`${f}: ${s[f]}\r -`;let d=s4.default(r);r.write(`${l}\r -`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",o4),i.secureEndpoint){Io("Upgrading socket connection to TLS");let f=i.servername||i.host;return mk.default.connect(Object.assign(Object.assign({},c4(i,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new gk.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Io("replaying proxy buffer for failed request"),t4.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};qa.default=Dw;function o4(t){t.resume()}function l4(t,e){return!!(!e&&t===80||e&&t===443)}function u4(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function c4(t,...e){let i={},n;for(n in t)e.includes(n)||(i[n]=t[n]);return i}});var vk=w((Nw,wk)=>{"use strict";var p4=Nw&&Nw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Gw=p4(fk());function $w(t){return new Gw.default(t)}(function(t){t.HttpsProxyAgent=Gw.default,t.prototype=Gw.default.prototype})($w||($w={}));wk.exports=$w});var Ak=w((doe,Ck)=>{var zo;Ck.exports=function(){if(!zo){try{zo=qo()("follow-redirects")}catch{}typeof zo!="function"&&(zo=function(){})}zo.apply(null,arguments)}});var Sk=w((hoe,Xw)=>{var Go=require("url"),Do=Go.URL,d4=require("http"),h4=require("https"),Fw=require("stream").Writable,Vw=require("assert"),bk=Ak();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=Ha(Error.captureStackTrace);!e&&(i||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Jw=!1;try{Vw(new Do(""))}catch(t){Jw=t.code==="ERR_INVALID_URL"}var g4=["Authorization","Proxy-Authorization","Cookie"],m4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Zw=["abort","aborted","connect","error","socket","timeout"],Kw=Object.create(null);Zw.forEach(function(t){Kw[t]=function(e,i,n){this._redirectable.emit(t,e,i,n)}});var Lw=$o("ERR_INVALID_URL","Invalid URL",TypeError),Ww=$o("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),f4=$o("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Ww),w4=$o("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),v4=$o("ERR_STREAM_WRITE_AFTER_END","write after end"),C4=Fw.prototype.destroy||Pk;function Vi(t,e){Fw.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 Ww?a:new Ww({cause:a}))}},this._headerFilter=new RegExp("^(?:"+g4.concat(t.sensitiveHeaders).map(S4).join("|")+")$","i"),this._performRequest()}Vi.prototype=Object.create(Fw.prototype);Vi.prototype.abort=function(){Yw(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Vi.prototype.destroy=function(t){return Yw(this._currentRequest,t),C4.call(this,t),this};Vi.prototype.write=function(t,e,i){if(this._ending)throw new v4;if(!_a(t)&&!P4(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Ha(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 w4),this.abort())};Vi.prototype.end=function(t,e,i){if(Ha(t)?(i=t,t=e=null):Ha(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}};Vi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Vi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Vi.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){Vi.prototype[t]=function(e,i){return this._currentRequest[t](e,i)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Vi.prototype,t,{get:function(){return this._currentRequest[t]}})});Vi.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),y4(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))}};Vi.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 Zw)n.on(a,Kw[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(Yw(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new f4;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=[],Uw(/^content-/i,this._options.headers));var s=Uw(/^host$/i,this._options.headers),o=Qw(this._currentUrl),l=s||o.host,u=/^\w+:/.test(i)?this._currentUrl:Go.format(Object.assign(o,{host:l})),c=A4(i,u);if(bk("redirecting to",c.href),this._isRedirect=!0,Bw(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!b4(c.host,l))&&Uw(this._headerFilter,this._options.headers),Ha(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 yk(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 j4(u)?u=Bw(u):_a(u)?u=Bw(Qw(u)):(p=c,c=jk(u),u={protocol:a}),Ha(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=i,!_a(c.host)&&!_a(c.hostname)&&(c.hostname="::1"),Vw.equal(c.protocol,a,"protocol mismatch"),bk("options",c),new Vi(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 Pk(){}function Qw(t){var e;if(Jw)e=new Do(t);else if(e=jk(Go.parse(t)),!_a(e.protocol))throw new Lw({input:t});return e}function A4(t,e){return Jw?new Do(t,e):Qw(Go.resolve(e,t))}function jk(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Lw({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Lw({input:t.href||t});return t}function Bw(t,e){var i=e||{};for(var n of m4)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 Uw(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){Ha(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 Yw(t,e){for(var i of Zw)t.removeListener(i,Kw[i]);t.on("error",Pk),t.destroy(e)}function b4(t,e){Vw(_a(t)&&_a(e));var i=t.length-e.length-1;return i>0&&t[i]==="."&&t.endsWith(e)}function y4(t){return t instanceof Array}function _a(t){return typeof t=="string"||t instanceof String}function Ha(t){return typeof t=="function"}function P4(t){return typeof t=="object"&&"length"in t}function j4(t){return Do&&t instanceof Do}function S4(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}Xw.exports=yk({http:d4,https:h4});Xw.exports.wrap=yk});var Sq=w((goe,jq)=>{"use strict";var Kk=tk(),O4=require("crypto"),x4=require("url"),Qk=vk(),T4=require("http"),M4=require("https"),Yk=require("http2"),fv=require("util"),Ok=require("path"),E4=Sk(),Dt=require("zlib"),Ji=require("stream"),k4=require("events");function Xk(t,e){return function(){return t.apply(e,arguments)}}var{toString:q4}=Object.prototype,{getPrototypeOf:Bc}=Object,{iterator:Fc,toStringTag:eq}=Symbol,Vc=(t=>e=>{let i=q4.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)&&Zi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var iq=Tn("ArrayBuffer");function _4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&iq(t.buffer),e}var H4=Jc("string"),Zi=Jc("function"),nq=Jc("number"),Bo=t=>t!==null&&typeof t=="object",R4=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)&&!(eq in t)&&!(Fc in t)},I4=t=>{if(!Bo(t)||Wo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},z4=Tn("Date"),D4=Tn("File"),G4=t=>!!(t&&typeof t.uri<"u"),$4=t=>t&&typeof t.getParts<"u",N4=Tn("Blob"),U4=Tn("FileList"),L4=t=>Bo(t)&&Zi(t.pipe);function W4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var xk=W4(),Tk=typeof xk.FormData<"u"?xk.FormData:void 0,B4=t=>{if(!t)return!1;if(Tk&&t instanceof Tk)return!0;let e=Bc(t);if(!e||e===Object.prototype||!Zi(t.append))return!1;let i=Vc(t);return i==="formdata"||i==="object"&&Zi(t.toString)&&t.toString()==="[object FormData]"},F4=Tn("URLSearchParams"),[V4,J4,Z4,K4]=["ReadableStream","Request","Response","Headers"].map(Tn),Q4=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 Ra=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,aq=t=>!Zr(t)&&t!==Ra;function sv(...t){let{caseless:e,skipUndefined:i}=aq(this)&&this||{},n={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&tq(n,s)||s,l=ov(n,o)?n[o]:void 0;Dc(l)&&Dc(r)?n[o]=sv(l,r):Dc(r)?n[o]=sv({},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&&Zi(a)?Object.defineProperty(t,r,{__proto__:null,value:Xk(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),X4=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),e3=(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)},i3=(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},n3=(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},t3=t=>{if(!t)return null;if(Qr(t))return t;let e=t.length;if(!nq(e))return null;let i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},a3=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bc(Uint8Array)),r3=(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])}},s3=(t,e)=>{let i,n=[];for(;(i=t.exec(e))!==null;)n.push(i);return n},o3=Tn("HTMLFormElement"),l3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),ov=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),u3=Tn("RegExp"),rq=(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)},c3=t=>{rq(t,(e,i)=>{if(Zi(t)&&["arguments","caller","callee"].includes(i))return!1;let n=t[i];if(Zi(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+"'")})}})},p3=(t,e)=>{let i={},n=a=>{a.forEach(r=>{i[r]=!0})};return Qr(t)?n(t):n(String(t).split(e)),i},d3=()=>{},h3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function g3(t){return!!(t&&Zi(t.append)&&t[eq]==="FormData"&&t[Fc])}var m3=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)},f3=Tn("AsyncFunction"),w3=t=>t&&(Bo(t)||Zi(t))&&Zi(t.then)&&Zi(t.catch),sq=((t,e)=>t?setImmediate:e?((i,n)=>(Ra.addEventListener("message",({source:a,data:r})=>{a===Ra&&r===i&&n.length&&n.shift()()},!1),a=>{n.push(a),Ra.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Zi(Ra.postMessage)),v3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ra):typeof process<"u"&&process.nextTick||sq,C3=t=>t!=null&&Zi(t[Fc]),C={isArray:Qr,isArrayBuffer:iq,isBuffer:Wo,isFormData:B4,isArrayBufferView:_4,isString:H4,isNumber:nq,isBoolean:R4,isObject:Bo,isPlainObject:Dc,isEmptyObject:I4,isReadableStream:V4,isRequest:J4,isResponse:Z4,isHeaders:K4,isUndefined:Zr,isDate:z4,isFile:D4,isReactNativeBlob:G4,isReactNative:$4,isBlob:N4,isRegExp:u3,isFunction:Zi,isStream:L4,isURLSearchParams:F4,isTypedArray:a3,isFileList:U4,forEach:Fo,merge:sv,extend:Y4,trim:Q4,stripBOM:X4,inherits:e3,toFlatObject:i3,kindOf:Vc,kindOfTest:Tn,endsWith:n3,toArray:t3,forEachEntry:r3,matchAll:s3,isHTMLForm:o3,hasOwnProperty:ov,hasOwnProp:ov,reduceDescriptors:rq,freezeMethods:c3,toObjectSet:p3,toCamelCase:l3,noop:d3,toFiniteNumber:h3,findKey:tq,global:Ra,isContextDefined:aq,isSpecCompliantForm:g3,toJSONObject:m3,isAsyncFn:f3,isThenable:w3,setImmediate:sq,asap:v3,isIterable:C3},A3=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"]),b3=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]&&A3[i])&&(i==="set-cookie"?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)}),e};function y3(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 P3=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),j3=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function wv(t,e){return C.isArray(t)?t.map(i=>wv(i,e)):y3(String(t).replace(e,""))}var S3=t=>wv(t,P3),O3=t=>wv(t,j3);function vv(t){let e=Object.create(null);return C.forEach(t.toJSON(),(i,n)=>{e[n]=O3(i)}),e}var Mk=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):S3(String(t))}function x3(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 T3=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ev(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 M3(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,n)=>i.toUpperCase()+n)}function E3(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())&&!T3(e))s(b3(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 x3(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||ev(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||ev(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||ev(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?M3(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[Mk]=this[Mk]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=No(s);n[o]||(E3(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 k3="[REDACTED ****]";function q3(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 _3(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)&&q3(r))return n.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=i.has(o.toLowerCase())?k3: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?_3(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 lv(t){return C.isPlainObject(t)||C.isArray(t)}function oq(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function iv(t,e,i){return t?t.concat(e).map(function(a,r){return a=oq(a),!i&&r?"["+a+"]":a}).join(i?".":""):e}function H3(t){return C.isArray(t)&&!t.some(lv)}var R3=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(Kk||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(iv(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)&&H3(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(y=C.toArray(m)))return f=oq(f),y.forEach(function(b,O){!(C.isUndefined(b)||b===null)&&e.append(s===!0?iv([f],O,r):s===null?f:f+"[]",c(b))}),!1}return lv(m)?!0:(e.append(iv(v,f,r),c(m)),!1)}let d=[],h=Object.assign(R3,{defaultVisitor:p,convertValue:c,isVisitable:lv});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 Ek(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function lq(t,e){this._pairs=[],t&&Zc(t,this,e)}var uq=lq.prototype;uq.append=function(e,i){this._pairs.push([e,i])};uq.toString=function(e){let i=e?function(n){return e.call(this,n,Ek)}:Ek;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function I3(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Cv(t,e,i){if(!e)return t;let n=i&&i.encode||I3,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 lq(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},z3=x4.URLSearchParams,nv="abcdefghijklmnopqrstuvwxyz",kk="0123456789",cq={DIGIT:kk,ALPHA:nv,ALPHA_DIGIT:nv+nv.toUpperCase()+kk},D3=(t=16,e=cq.ALPHA_DIGIT)=>{let i="",{length:n}=e,a=new Uint32Array(t);O4.randomFillSync(a);for(let r=0;re[0]==="[]"?"":e[1]||e[0])}function F3(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]=F3(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let i={};return C.forEachEntry(t,(n,a)=>{e(B3(n),a,i,0)}),i}return null}var Vr=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function V3(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(pq(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 W3(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),V3(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 tv(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 dq(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 J3(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Z3(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function bv(t,e,i){let n=!J3(e);return t&&(n||i===!1)?Z3(t,e):e}var K3={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function Q3(t){try{return new URL(t)}catch{return null}}function Y3(t){var e=(typeof t=="string"?Q3(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)||K3[i]||0,!X3(n,a)))return"";var r=cv(i+"_proxy")||cv("all_proxy");return r&&r.indexOf("://")===-1&&(r=i+"://"+r),r}function X3(t,e){var i=cv("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 cv(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Uo="1.16.1";function hq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var eZ=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function iZ(t,e,i){let n=i&&i.Blob||Qe.classes.Blob,a=hq(t);if(e===void 0&&n&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=eZ.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 av=Symbol("internals"),Uc=class extends Ji.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[av]={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[av];return i.onReadCallback&&i.onReadCallback(),super._read(e)}_transform(e,i,n){let a=this[av],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:qk}=Symbol,gq=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[qk]?yield*t[qk]():yield t},nZ=Qe.ALPHABET.ALPHA_DIGIT+"-_",Lo=typeof TextEncoder=="function"?new TextEncoder:new fv.TextEncoder,Ia=`\r -`,tZ=Lo.encode(Ia),aZ=2,pv=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)}"`:""}${Ia}`;if(a)i=Lo.encode(String(i).replace(/\r?\n|\r\n?/g,Ia));else{let s=String(i.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Ia}`}this.headers=Lo.encode(r+Ia),this.contentLength=a?i.byteLength:i.size,this.size=this.headers.byteLength+this.contentLength+aZ,this.name=e,this.value=i}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*gq(e),yield tZ}static escapeName(e){return String(e).replace(/[\r\n"]/g,i=>({"\r":"%0D","\n":"%0A",'"':"%22"})[i])}},rZ=(t,e,i)=>{let{tag:n="form-data-boundary",size:a=25,boundary:r=n+"-"+Qe.generateString(a,nZ)}=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+Ia),o=Lo.encode("--"+r+"--"+Ia),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new pv(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),Ji.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},dv=class extends Ji.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)}},sZ=(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,oZ=new Set(["localhost"]),mq=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)},lZ=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return mq(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},_k=t=>t?oZ.has(t)||mq(t)?!0:lZ(t):!1,uZ={http:80,https:443,ws:80,wss:443,ftp:21},cZ=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]},pZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,dZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,hZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(pZ);if(e)return e[1];let i=t.match(dZ);if(i){let n=parseInt(i[1],16),a=parseInt(i[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},Hk=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),hZ(t.replace(/\.+$/,"")));function gZ(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)||uZ[e.protocol.split(":",1)[0]]||0,a=Hk(e.hostname.toLowerCase());return i.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=cZ(r);return s=Hk(s),!s||o&&o!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||_k(a)&&_k(s))})}function mZ(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=mZ(50,250);return fZ(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 fq(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 Rk={flush:Dt.constants.Z_SYNC_FLUSH,finishFlush:Dt.constants.Z_SYNC_FLUSH},wZ={flush:Dt.constants.BROTLI_OPERATION_FLUSH,finishFlush:Dt.constants.BROTLI_OPERATION_FLUSH},Ik=C.isFunction(Dt.createBrotliDecompress),{http:vZ,https:CZ}=E4,wq=/https:?/,AZ=["content-type","content-length"];function bZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{AZ.includes(n.toLowerCase())&&t.set(n,a)})}var zk=Symbol("axios.http.socketListener"),Ic=Symbol("axios.http.currentReq"),vq=Symbol("axios.http.installedTunnel"),yZ=new Map,Dk=new WeakMap;function PZ(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?Dk.get(e)||Dk.set(e,new Map).get(e):yZ,a=n.get(i);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new Qk(r),a[vq]=!0,n.set(i,a),a}var Gk=Qe.protocols.map(t=>t+":"),$k=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Nk=(t,[e,i])=>(t.on("end",i).on("error",i),e),hv=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}},jZ=new hv;function SZ(t,e,i){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,i)}function Cq(t,e,i,n,a){let r=e;if(!r&&r!==!1){let s=Y3(i);s&&(gZ(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[vq]&&(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(wq.test(t.protocol)){if(!(a instanceof Qk)){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=PZ(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){Cq(o,e,o.href,!0,a)}}var OZ=typeof process<"u"&&C.kindOf(process)==="process",xZ=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)}),TZ=({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)}},Uk=(t,e)=>TZ(C.isObject(t)?t:{address:t,family:e}),MZ={request(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:a}=t,r=jZ.getSession(i,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=Yk.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}},EZ=OZ&&function(e){return xZ(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=sZ(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=>Uk(gt)):[Uk(ni,pi)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let b=new k4.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 Ji.Readable||be instanceof Ji.Duplex){let Je=Ji.finished(be,()=>{Je(),X()})}else X()});let F=bv(e.baseURL,e.url,e.allowAbsoluteUrls),k=new URL(F,Qe.hasBrowserEnv?Qe.origin:void 0),Q=k.protocol||Gk[0];if(Q==="data:"){if(e.maxContentLength>-1){let x=String(e.url||F||"");if(fq(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=iZ(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=Ji.Readable.from(G)),Jr(n,a,{data:G,status:200,statusText:"OK",headers:new ti,config:e})}if(Gk.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=rZ(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(bZ(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await fv.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=Ji.Readable.from(gq(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=Ji.Readable.from(o,{objectMode:!1})),o=Ji.pipeline([o,new Uc({maxRate:C.toFiniteNumber(S)})],C.noop),ie&&o.on("progress",Nk(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=$k(k.username),x=$k(k.password);Se=G+":"+x}Se&&Z.delete("authorization");let ei;try{ei=Cv(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"+(Ik?", br":""),!1);let Re=Object.assign(Object.create(null),{path:ei,method:g,headers:vv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:SZ,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=Ok.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&Ok.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,Cq(Re,e.proxy,Q+"//"+k.hostname+(k.port?":"+k.port:"")+Re.path,!1,e.httpsAgent);let Me,xi=!1,vi=wq.test(Re.protocol);if(Re.agent==null&&(Re.agent=vi?e.httpsAgent:e.httpAgent),A)Me=MZ;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=vi?M4:T4,xi=!0;else{e.maxRedirects&&(Re.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Re.beforeRedirects.config=x),Me=vi?CZ:vZ}}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",Nk(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(Rk)),delete x.headers["content-encoding"];break;case"deflate":be.push(new dv),be.push(Dt.createUnzip(Rk)),delete x.headers["content-encoding"];break;case"br":Ik&&(be.push(Dt.createBrotliDecompress(wZ)),delete x.headers["content-encoding"])}ye=be.length>1?Ji.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=Ji.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 tn=new Set;if(v.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[zk]||(x.on("error",function(Je){let ye=x[Ic];ye&&!ye.destroyed&&ye.destroy(Je)}),x[zk]=!0),x[Ic]=v,tn.add(x)}),v.once("close",function(){$();for(let x of tn)x[Ic]===v&&(x[Ic]=null);tn.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())};xi&&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=Ji.pipeline([o,new Ji.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()})},kZ=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,qZ=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 za(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(Lk(u),Lk(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 _Z=["content-type","content-length"];function HZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{_Z.includes(n.toLowerCase())&&t.set(n,a)})}var RZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),Aq=t=>{let e=za({},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=Cv(bv(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?RZ(l.password):""))),C.isFormData(n)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(n.getHeaders)&&HZ(o,n.getHeaders(),i("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&kZ(e.url))){let h=r&&s&&qZ.read(s);h&&o.set(r,h)}return e},IZ=typeof XMLHttpRequest<"u",zZ=IZ&&function(t){return new Promise(function(i,n){let a=Aq(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(vv(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=hq(a.url);if(y&&!Qe.protocols.includes(y)){n(new T("Unsupported protocol "+y+":",T.ERR_BAD_REQUEST,t));return}f.send(r||null)})},DZ=(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},GZ=function*(t,e){let i=t.byteLength;if(i{let a=$Z(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})},Bk=64*1024,{isFunction:zc}=C,Fk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},UZ=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&&Fk(()=>{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&&Fk(()=>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}=Aq(v),S=C.isNumber(se)&&se>-1,R=C.isNumber(De)&&De>-1,Ae=a||fetch;k=k?(k+"").toLowerCase():"text";let Se=DZ([O,$&&$.toAbortSignal()],N),I=null,ei=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Re;try{if(S&&typeof y=="string"&&y.startsWith("data:")&&fq(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=Wk(x.body,Bk,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 xi={...ie,signal:Se,method:A.toUpperCase(),headers:vv(Q.normalize()),body:b,duplex:"half",credentials:Me?Z:void 0};I=l&&new r(y,xi);let vi=await(l?Ae(I,ie):Ae(y,xi));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 tn=h&&(k==="stream"||k==="response");if(h&&vi.body&&(X||S||tn&&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(Wk(vi.body,Bk,pi,()=>{ye&&ye(),ei&&ei()}),x)}k=k||"text";let G=await g[C.findKey(g,k)||"text"](vi,v);if(S&&!h&&!tn){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!tn&&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 xi=Se.reason;throw xi.config=v,I&&(xi.request=I),Me!==xi&&(xi.cause=Me),xi}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)}}},LZ=new Map,bq=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=LZ;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:UZ(e)),c=u;return u};bq();var yv={http:EZ,xhr:zZ,fetch:{get:bq}};C.forEach(yv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var Vk=t=>`- ${t}`,WZ=t=>C.isFunction(t)||t===null||t===!1;function BZ(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(Vk).join(` -`):" "+Vk(s[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}var yq={getAdapter:BZ,adapters:yv};function rv(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function Jk(t){return rv(t),t.headers=ti.from(t.headers),t.data=tv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),yq.getAdapter(t.adapter||Vo.adapter,t)(t).then(function(n){rv(t),t.response=n;try{n.data=tv.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ti.from(n.headers),n},function(n){if(!dq(n)&&(rv(t),n&&n.response)){t.response=n.response;try{n.response.data=tv.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 Zk={};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&&!Zk[s]&&(Zk[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 FZ(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:FZ,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(` +`)===-1){zo("have not received end of HTTP headers yet..."),r();return}let g=d.toString("ascii",0,d.indexOf(`\r +`)),m=+g.split(" ")[1];zo("got proxy server response: %o",g),e({statusCode:m,buffered:d})}t.on("error",u),t.on("close",o),t.on("end",l),r()})}Do.default=C4});var Ok=w(Ha=>{"use strict";var A4=Ha&&Ha.__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())})},Jr=Ha&&Ha.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ha,"__esModule",{value:!0});var jk=Jr(require("net")),Sk=Jr(require("tls")),b4=Jr(require("url")),y4=Jr(require("assert")),P4=Jr(Io()),j4=yk(),S4=Jr(Pk()),Go=P4.default("https-proxy-agent:agent"),Ww=class extends j4.Agent{constructor(e){let i;if(typeof e=="string"?i=b4.default.parse(e):i=e,!i)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Go("creating new HttpsProxyAgent instance: %o",i),super(i);let n=Object.assign({},i);this.secureProxy=i.secureProxy||T4(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 A4(this,void 0,void 0,function*(){let{proxy:n,secureProxy:a}=this,r;a?(Go("Creating `tls.Socket`: %o",n),r=Sk.default.connect(n)):(Go("Creating `net.Socket`: %o",n),r=jk.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;x4(c,p)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let f of Object.keys(s))l+=`${f}: ${s[f]}\r +`;let d=S4.default(r);r.write(`${l}\r +`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",O4),i.secureEndpoint){Go("Upgrading socket connection to TLS");let f=i.servername||i.host;return Sk.default.connect(Object.assign(Object.assign({},M4(i,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new jk.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Go("replaying proxy buffer for failed request"),y4.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};Ha.default=Ww;function O4(t){t.resume()}function x4(t,e){return!!(!e&&t===80||e&&t===443)}function T4(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function M4(t,...e){let i={},n;for(n in t)e.includes(n)||(i[n]=t[n]);return i}});var Tk=w((Vw,xk)=>{"use strict";var E4=Vw&&Vw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Bw=E4(Ok());function Fw(t){return new Bw.default(t)}(function(t){t.HttpsProxyAgent=Bw.default,t.prototype=Bw.default.prototype})(Fw||(Fw={}));xk.exports=Fw});var Ek=w((Qoe,Mk)=>{var $o;Mk.exports=function(){if(!$o){try{$o=Io()("follow-redirects")}catch{}typeof $o!="function"&&($o=function(){})}$o.apply(null,arguments)}});var Ik=w((Yoe,rv)=>{var Uo=require("url"),No=Uo.URL,k4=require("http"),q4=require("https"),Yw=require("stream").Writable,Xw=require("assert"),kk=Ek();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=Ra(Error.captureStackTrace);!e&&(i||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var ev=!1;try{Xw(new No(""))}catch(t){ev=t.code==="ERR_INVALID_URL"}var _4=["Authorization","Proxy-Authorization","Cookie"],H4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],iv=["abort","aborted","connect","error","socket","timeout"],nv=Object.create(null);iv.forEach(function(t){nv[t]=function(e,i,n){this._redirectable.emit(t,e,i,n)}});var Zw=Lo("ERR_INVALID_URL","Invalid URL",TypeError),Kw=Lo("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),I4=Lo("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Kw),R4=Lo("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),z4=Lo("ERR_STREAM_WRITE_AFTER_END","write after end"),D4=Yw.prototype.destroy||_k;function Vi(t,e){Yw.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 Kw?a:new Kw({cause:a}))}},this._headerFilter=new RegExp("^(?:"+_4.concat(t.sensitiveHeaders).map(W4).join("|")+")$","i"),this._performRequest()}Vi.prototype=Object.create(Yw.prototype);Vi.prototype.abort=function(){av(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Vi.prototype.destroy=function(t){return av(this._currentRequest,t),D4.call(this,t),this};Vi.prototype.write=function(t,e,i){if(this._ending)throw new z4;if(!Ia(t)&&!U4(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Ra(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 R4),this.abort())};Vi.prototype.end=function(t,e,i){if(Ra(t)?(i=t,t=e=null):Ra(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}};Vi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Vi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Vi.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){Vi.prototype[t]=function(e,i){return this._currentRequest[t](e,i)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Vi.prototype,t,{get:function(){return this._currentRequest[t]}})});Vi.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),N4(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))}};Vi.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 iv)n.on(a,nv[a]);if(this._currentUrl=/^\//.test(this._options.path)?Uo.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(av(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new I4;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=[],Jw(/^content-/i,this._options.headers));var s=Jw(/^host$/i,this._options.headers),o=tv(this._currentUrl),l=s||o.host,u=/^\w+:/.test(i)?this._currentUrl:Uo.format(Object.assign(o,{host:l})),c=G4(i,u);if(kk("redirecting to",c.href),this._isRedirect=!0,Qw(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!$4(c.host,l))&&Jw(this._headerFilter,this._options.headers),Ra(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 qk(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 L4(u)?u=Qw(u):Ia(u)?u=Qw(tv(u)):(p=c,c=Hk(u),u={protocol:a}),Ra(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=i,!Ia(c.host)&&!Ia(c.hostname)&&(c.hostname="::1"),Xw.equal(c.protocol,a,"protocol mismatch"),kk("options",c),new Vi(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 _k(){}function tv(t){var e;if(ev)e=new No(t);else if(e=Hk(Uo.parse(t)),!Ia(e.protocol))throw new Zw({input:t});return e}function G4(t,e){return ev?new No(t,e):tv(Uo.resolve(e,t))}function Hk(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Zw({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Zw({input:t.href||t});return t}function Qw(t,e){var i=e||{};for(var n of H4)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 Jw(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 Lo(t,e,i){function n(a){Ra(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 av(t,e){for(var i of iv)t.removeListener(i,nv[i]);t.on("error",_k),t.destroy(e)}function $4(t,e){Xw(Ia(t)&&Ia(e));var i=t.length-e.length-1;return i>0&&t[i]==="."&&t.endsWith(e)}function N4(t){return t instanceof Array}function Ia(t){return typeof t=="string"||t instanceof String}function Ra(t){return typeof t=="function"}function U4(t){return typeof t=="object"&&"length"in t}function L4(t){return No&&t instanceof No}function W4(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}rv.exports=qk({http:k4,https:q4});rv.exports.wrap=qk});var Iq=w((Xoe,Hq)=>{"use strict";var sq=hk(),B4=require("crypto"),F4=require("url"),oq=Tk(),V4=require("http"),J4=require("https"),lq=require("http2"),yv=require("util"),Rk=require("path"),Z4=Ik(),$t=require("zlib"),Ji=require("stream"),K4=require("events");function uq(t,e){return function(){return t.apply(e,arguments)}}var{toString:Q4}=Object.prototype,{getPrototypeOf:Yc}=Object,{iterator:Xc,toStringTag:cq}=Symbol,ep=(t=>e=>{let i=Q4.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=t=>(t=t.toLowerCase(),e=>ep(e)===t),ip=t=>e=>typeof e===t,{isArray:Xr}=Array,Qr=ip("undefined");function Vo(t){return t!==null&&!Qr(t)&&t.constructor!==null&&!Qr(t.constructor)&&Zi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var pq=Tn("ArrayBuffer");function Y4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&pq(t.buffer),e}var X4=ip("string"),Zi=ip("function"),dq=ip("number"),Jo=t=>t!==null&&typeof t=="object",e3=t=>t===!0||t===!1,Bc=t=>{if(ep(t)!=="object")return!1;let e=Yc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(cq in t)&&!(Xc in t)},i3=t=>{if(!Jo(t)||Vo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},n3=Tn("Date"),t3=Tn("File"),a3=t=>!!(t&&typeof t.uri<"u"),r3=t=>t&&typeof t.getParts<"u",s3=Tn("Blob"),o3=Tn("FileList"),l3=t=>Jo(t)&&Zi(t.pipe);function u3(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var zk=u3(),Dk=typeof zk.FormData<"u"?zk.FormData:void 0,c3=t=>{if(!t)return!1;if(Dk&&t instanceof Dk)return!0;let e=Yc(t);if(!e||e===Object.prototype||!Zi(t.append))return!1;let i=ep(t);return i==="formdata"||i==="object"&&Zi(t.toString)&&t.toString()==="[object FormData]"},p3=Tn("URLSearchParams"),[d3,h3,g3,m3]=["ReadableStream","Request","Response","Headers"].map(Tn),f3=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zo(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Xr(t))for(n=0,a=t.length;n0;)if(a=i[n],e===a.toLowerCase())return a;return null}var za=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gq=t=>!Qr(t)&&t!==za;function dv(...t){let{caseless:e,skipUndefined:i}=gq(this)&&this||{},n={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&hq(n,s)||s,l=hv(n,o)?n[o]:void 0;Bc(l)&&Bc(r)?n[o]=dv(l,r):Bc(r)?n[o]=dv({},r):Xr(r)?n[o]=r.slice():(!i||!Qr(r))&&(n[o]=r)};for(let r=0,s=t.length;r(Zo(e,(a,r)=>{i&&Zi(a)?Object.defineProperty(t,r,{__proto__:null,value:uq(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),v3=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),C3=(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)},A3=(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&&Yc(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},b3=(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},y3=t=>{if(!t)return null;if(Xr(t))return t;let e=t.length;if(!dq(e))return null;let i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},P3=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Yc(Uint8Array)),j3=(t,e)=>{let n=(t&&t[Xc]).call(t),a;for(;(a=n.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},S3=(t,e)=>{let i,n=[];for(;(i=t.exec(e))!==null;)n.push(i);return n},O3=Tn("HTMLFormElement"),x3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),hv=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),T3=Tn("RegExp"),mq=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),n={};Zo(i,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(n[r]=s||a)}),Object.defineProperties(t,n)},M3=t=>{mq(t,(e,i)=>{if(Zi(t)&&["arguments","caller","callee"].includes(i))return!1;let n=t[i];if(Zi(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 Xr(t)?n(t):n(String(t).split(e)),i},k3=()=>{},q3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function _3(t){return!!(t&&Zi(t.append)&&t[cq]==="FormData"&&t[Xc])}var H3=t=>{let e=new WeakSet,i=n=>{if(Jo(n)){if(e.has(n))return;if(Vo(n))return n;if(!("toJSON"in n)){e.add(n);let a=Xr(n)?[]:{};return Zo(n,(r,s)=>{let o=i(r);!Qr(o)&&(a[s]=o)}),e.delete(n),a}}return n};return i(t)},I3=Tn("AsyncFunction"),R3=t=>t&&(Jo(t)||Zi(t))&&Zi(t.then)&&Zi(t.catch),fq=((t,e)=>t?setImmediate:e?((i,n)=>(za.addEventListener("message",({source:a,data:r})=>{a===za&&r===i&&n.length&&n.shift()()},!1),a=>{n.push(a),za.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Zi(za.postMessage)),z3=typeof queueMicrotask<"u"?queueMicrotask.bind(za):typeof process<"u"&&process.nextTick||fq,D3=t=>t!=null&&Zi(t[Xc]),C={isArray:Xr,isArrayBuffer:pq,isBuffer:Vo,isFormData:c3,isArrayBufferView:Y4,isString:X4,isNumber:dq,isBoolean:e3,isObject:Jo,isPlainObject:Bc,isEmptyObject:i3,isReadableStream:d3,isRequest:h3,isResponse:g3,isHeaders:m3,isUndefined:Qr,isDate:n3,isFile:t3,isReactNativeBlob:a3,isReactNative:r3,isBlob:s3,isRegExp:T3,isFunction:Zi,isStream:l3,isURLSearchParams:p3,isTypedArray:P3,isFileList:o3,forEach:Zo,merge:dv,extend:w3,trim:f3,stripBOM:v3,inherits:C3,toFlatObject:A3,kindOf:ep,kindOfTest:Tn,endsWith:b3,toArray:y3,forEachEntry:j3,matchAll:S3,isHTMLForm:O3,hasOwnProperty:hv,hasOwnProp:hv,reduceDescriptors:mq,freezeMethods:M3,toObjectSet:E3,toCamelCase:x3,noop:k3,toFiniteNumber:q3,findKey:hq,global:za,isContextDefined:gq,isSpecCompliantForm:_3,toJSONObject:H3,isAsyncFn:I3,isThenable:R3,setImmediate:fq,asap:z3,isIterable:D3},G3=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"]),$3=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]&&G3[i])&&(i==="set-cookie"?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)}),e};function N3(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 U3=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),L3=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Pv(t,e){return C.isArray(t)?t.map(i=>Pv(i,e)):N3(String(t).replace(e,""))}var W3=t=>Pv(t,U3),B3=t=>Pv(t,L3);function jv(t){let e=Object.create(null);return C.forEach(t.toJSON(),(i,n)=>{e[n]=B3(i)}),e}var Gk=Symbol("internals");function Wo(t){return t&&String(t).trim().toLowerCase()}function Fc(t){return t===!1||t==null?t:C.isArray(t)?t.map(Fc):W3(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 V3=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function sv(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 Z3(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 ai=class{constructor(e){e&&this.set(e)}set(e,i,n){let a=this;function r(o,l,u){let c=Wo(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]=Fc(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())&&!V3(e))s($3(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=Wo(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=Wo(e),e){let n=C.findKey(this,e);return!!(n&&this[n]!==void 0&&(!i||sv(this,this[n],n,i)))}return!1}delete(e,i){let n=this,a=!1;function r(s){if(s=Wo(s),s){let o=C.findKey(n,s);o&&(!i||sv(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||sv(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]=Fc(a),delete i[r];return}let o=e?J3(r):String(r).trim();o!==r&&delete i[r],i[o]=Fc(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[Gk]=this[Gk]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=Wo(s);n[o]||(Z3(a,s),n[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};ai.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ai.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[i]=n}}});C.freezeMethods(ai);var K3="[REDACTED ****]";function Q3(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 ai&&(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)&&Q3(r))return n.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=i.has(o.toLowerCase())?K3: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 gv(t){return C.isPlainObject(t)||C.isArray(t)}function wq(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function ov(t,e,i){return t?t.concat(e).map(function(a,r){return a=wq(a),!i&&r?"["+a+"]":a}).join(i?".":""):e}function X3(t){return C.isArray(t)&&!t.some(gv)}var eZ=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function np(t,e,i){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(sq||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(ov(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)&&X3(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(y=C.toArray(m)))return f=wq(f),y.forEach(function(b,O){!(C.isUndefined(b)||b===null)&&e.append(s===!0?ov([f],O,r):s===null?f:f+"[]",c(b))}),!1}return gv(m)?!0:(e.append(ov(v,f,r),c(m)),!1)}let d=[],h=Object.assign(eZ,{defaultVisitor:p,convertValue:c,isVisitable:gv});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 $k(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function vq(t,e){this._pairs=[],t&&np(t,this,e)}var Cq=vq.prototype;Cq.append=function(e,i){this._pairs.push([e,i])};Cq.toString=function(e){let i=e?function(n){return e.call(this,n,$k)}:$k;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function iZ(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Sv(t,e,i){if(!e)return t;let n=i&&i.encode||iZ,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 vq(e,a).toString(n),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var Jc=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)})}},tp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},nZ=F4.URLSearchParams,lv="abcdefghijklmnopqrstuvwxyz",Nk="0123456789",Aq={DIGIT:Nk,ALPHA:lv,ALPHA_DIGIT:lv+lv.toUpperCase()+Nk},tZ=(t=16,e=Aq.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 pZ(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]=pZ(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let i={};return C.forEachEntry(t,(n,a)=>{e(cZ(n),a,i,0)}),i}return null}var Zr=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function dZ(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 Ko={transitional:tp,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(bq(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=Zr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return uZ(e,l).toString();if((o=C.isFileList(e))||n.indexOf("multipart/form-data")>-1){let u=Zr(this,"env"),c=u&&u.FormData;return np(o?{"files[]":e}:e,c&&new c,l)}}return r||a?(i.setContentType("application/json",!1),dZ(e)):e}],transformResponse:[function(e){let i=Zr(this,"transitional")||Ko.transitional,n=i&&i.forcedJSONParsing,a=Zr(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,Zr(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,Zr(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=>{Ko.headers[t]={}});function uv(t,e){let i=this||Ko,n=e||i,a=ai.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 yq(t){return!!(t&&t.__CANCEL__)}var pt=class extends T{constructor(e,i,n){super(e??"canceled",T.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function Kr(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 hZ(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function gZ(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function xv(t,e,i){let n=!hZ(e);return t&&(n||i===!1)?gZ(t,e):e}var mZ={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function fZ(t){try{return new URL(t)}catch{return null}}function wZ(t){var e=(typeof t=="string"?fZ(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)||mZ[i]||0,!vZ(n,a)))return"";var r=fv(i+"_proxy")||fv("all_proxy");return r&&r.indexOf("://")===-1&&(r=i+"://"+r),r}function vZ(t,e){var i=fv("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 fv(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Bo="1.16.1";function Pq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var CZ=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function AZ(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=CZ.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 cv=Symbol("internals"),Zc=class extends Ji.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[cv]={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[cv];return i.onReadCallback&&i.onReadCallback(),super._read(e)}_transform(e,i,n){let a=this[cv],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:Uk}=Symbol,jq=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[Uk]?yield*t[Uk]():yield t},bZ=Qe.ALPHABET.ALPHA_DIGIT+"-_",Fo=typeof TextEncoder=="function"?new TextEncoder:new yv.TextEncoder,Da=`\r +`,yZ=Fo.encode(Da),PZ=2,wv=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)}"`:""}${Da}`;if(a)i=Fo.encode(String(i).replace(/\r?\n|\r\n?/g,Da));else{let s=String(i.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Da}`}this.headers=Fo.encode(r+Da),this.contentLength=a?i.byteLength:i.size,this.size=this.headers.byteLength+this.contentLength+PZ,this.name=e,this.value=i}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*jq(e),yield yZ}static escapeName(e){return String(e).replace(/[\r\n"]/g,i=>({"\r":"%0D","\n":"%0A",'"':"%22"})[i])}},jZ=(t,e,i)=>{let{tag:n="form-data-boundary",size:a=25,boundary:r=n+"-"+Qe.generateString(a,bZ)}=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=Fo.encode("--"+r+Da),o=Fo.encode("--"+r+"--"+Da),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new wv(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),Ji.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},vv=class extends Ji.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)}},SZ=(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,OZ=new Set(["localhost"]),Sq=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)},xZ=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return Sq(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},Lk=t=>t?OZ.has(t)||Sq(t)?!0:xZ(t):!1,TZ={http:80,https:443,ws:80,wss:443,ftp:21},MZ=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,kZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,qZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(EZ);if(e)return e[1];let i=t.match(kZ);if(i){let n=parseInt(i[1],16),a=parseInt(i[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},Wk=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),qZ(t.replace(/\.+$/,"")));function _Z(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)||TZ[e.protocol.split(":",1)[0]]||0,a=Wk(e.hostname.toLowerCase());return i.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=MZ(r);return s=Wk(s),!s||o&&o!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||Lk(a)&&Lk(s))})}function HZ(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 Yr=(t,e,i=3)=>{let n=0,a=HZ(50,250);return IZ(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)},Kc=(t,e)=>{let i=t!=null;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},Qc=t=>(...e)=>C.asap(()=>t(...e));function Oq(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 Bk={flush:$t.constants.Z_SYNC_FLUSH,finishFlush:$t.constants.Z_SYNC_FLUSH},RZ={flush:$t.constants.BROTLI_OPERATION_FLUSH,finishFlush:$t.constants.BROTLI_OPERATION_FLUSH},Fk=C.isFunction($t.createBrotliDecompress),{http:zZ,https:DZ}=Z4,xq=/https:?/,GZ=["content-type","content-length"];function $Z(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{GZ.includes(n.toLowerCase())&&t.set(n,a)})}var Vk=Symbol("axios.http.socketListener"),Lc=Symbol("axios.http.currentReq"),Tq=Symbol("axios.http.installedTunnel"),NZ=new Map,Jk=new WeakMap;function UZ(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?Jk.get(e)||Jk.set(e,new Map).get(e):NZ,a=n.get(i);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new oq(r),a[Tq]=!0,n.set(i,a),a}var Zk=Qe.protocols.map(t=>t+":"),Kk=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Qk=(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}},LZ=new Cv;function WZ(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=wZ(i);s&&(_Z(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[Tq]&&(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(xq.test(t.protocol)){if(!(a instanceof oq)){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=UZ(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 BZ=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)}),VZ=({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)}},Yk=(t,e)=>VZ(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=LZ.getSession(i,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=lq.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}},ZZ=BZ&&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=SZ(l,x=>C.isArray(x)?x:[x]);l=(x,be,Je)=>{G(x,be,(ye,ni,di)=>{if(ye)return Je(ye);let xe=C.isArray(ni)?ni.map(ft=>Yk(ft)):[Yk(ni,di)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let b=new K4.EventEmitter;function O(G){try{b.emit("abort",!G||G.type?new pt(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||tp;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 Ji.Readable||be instanceof Ji.Duplex){let Je=Ji.finished(be,()=>{Je(),X()})}else X()});let F=xv(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(Oq(x)>e.maxContentLength)return a(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e))}let G;if(g!=="GET")return Kr(n,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=AZ(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=Ji.Readable.from(G)),Kr(n,a,{data:G,status:200,statusText:"OK",headers:new ai,config:e})}if(Zk.indexOf(Q)===-1)return a(new T("Unsupported protocol "+Q,T.ERR_BAD_REQUEST,e));let Z=ai.from(e.headers).normalize();Z.set("User-Agent","axios/"+Bo,!1);let{onUploadProgress:ie,onDownloadProgress:se}=e,De=e.maxRate,S,I;if(C.isSpecCompliantForm(o)){let G=Z.getContentType(/boundary=([-_\w\d]{10,70})/i);o=jZ(o,x=>{Z.set(x)},{tag:`axios-${Bo}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(o)&&C.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if($Z(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await yv.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=Ji.Readable.from(jq(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],I=De[1]):S=I=De,o&&(ie||S)&&(C.isStream(o)||(o=Ji.Readable.from(o,{objectMode:!1})),o=Ji.pipeline([o,new Zc({maxRate:C.toFiniteNumber(S)})],C.noop),ie&&o.on("progress",Qk(o,Kc(Ae,Yr(Qc(ie),!1,3)))));let Se,R=s("auth");if(R){let G=R.username||"",x=R.password||"";Se=G+":"+x}if(!Se&&k.username){let G=Kk(k.username),x=Kk(k.password);Se=G+":"+x}Se&&Z.delete("authorization");let ei;try{ei=Sv(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"+(Fk?", br":""),!1);let Ie=Object.assign(Object.create(null),{path:ei,method:g,headers:jv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:WZ,beforeRedirects:Object.create(null),http2Options:p});if(!C.isUndefined(l)&&(Ie.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=Rk.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&Rk.resolve(Je)===x))return a(new T(`socketPath "${e.socketPath}" is not permitted by allowedSocketPaths`,T.ERR_BAD_OPTION_VALUE,e))}Ie.socketPath=e.socketPath}else Ie.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Ie.port=k.port,Mq(Ie,e.proxy,Q+"//"+k.hostname+(k.port?":"+k.port:"")+Ie.path,!1,e.httpsAgent);let Me,xi=!1,Ci=xq.test(Ie.protocol);if(Ie.agent==null&&(Ie.agent=Ci?e.httpsAgent:e.httpAgent),A)Me=JZ;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=Ci?J4:V4,xi=!0;else{e.maxRedirects&&(Ie.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Ie.beforeRedirects.config=x),Me=Ci?DZ:zZ}}e.maxBodyLength>-1?Ie.maxBodyLength=e.maxBodyLength:Ie.maxBodyLength=1/0,Ie.insecureHTTPParser=!!s("insecureHTTPParser"),v=Me.request(Ie,function(x){if($(),v.destroyed)return;let be=[x],Je=C.toFiniteNumber(x.headers["content-length"]);if(se||I){let xe=new Zc({maxRate:C.toFiniteNumber(I)});se&&xe.on("progress",Qk(xe,Kc(Je,Yr(Qc(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($t.createUnzip(Bk)),delete x.headers["content-encoding"];break;case"deflate":be.push(new vv),be.push($t.createUnzip(Bk)),delete x.headers["content-encoding"];break;case"br":Fk&&(be.push($t.createBrotliDecompress(RZ)),delete x.headers["content-encoding"])}ye=be.length>1?Ji.pipeline(be,C.noop):be[0];let di={status:x.statusCode,statusText:x.statusMessage,headers:new ai(x.headers),config:e,request:ni};if(d==="stream"){if(e.maxContentLength>-1){let xe=e.maxContentLength,ft=ye;async function*vn(){let Ge=0;for await(let ir of ft){if(Ge+=ir.length,Ge>xe)throw new T("maxContentLength size of "+xe+" exceeded",T.ERR_BAD_RESPONSE,e,ni);yield ir}}ye=Ji.Readable.from(vn(),{objectMode:!1})}di.data=ye,Kr(n,a,di)}else{let xe=[],ft=0;ye.on("data",function(Ge){xe.push(Ge),ft+=Ge.length,e.maxContentLength>-1&&ft>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,di);ye.destroy(Ge),a(Ge)}),ye.on("error",function(Ge){f||a(T.from(Ge,null,e,ni,di))}),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))),di.data=Ge}catch(Ge){return a(T.from(Ge,null,e,di.request,di))}Kr(n,a,di)})}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 tn=new Set;if(v.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[Vk]||(x.on("error",function(Je){let ye=x[Lc];ye&&!ye.destroyed&&ye.destroy(Je)}),x[Vk]=!0),x[Lc]=v,tn.add(x)}),v.once("close",function(){$();for(let x of tn)x[Lc]===v&&(x[Lc]=null);tn.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())};xi&&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 pt("Request stream has been aborted",e,v))});let be=o;if(e.maxBodyLength>-1&&e.maxRedirects===0){let Je=e.maxBodyLength,ye=0;be=Ji.pipeline([o,new Ji.Transform({transform(ni,di,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()})},KZ=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,QZ=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 ai?{...t}:t;function Ga(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(Xk(u),Xk(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 XZ(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 e5=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),Eq=t=>{let e=Ga({},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=ai.from(o),e.url=Sv(xv(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?e5(l.password):""))),C.isFormData(n)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(n.getHeaders)&&XZ(o,n.getHeaders(),i("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&KZ(e.url))){let h=r&&s&&QZ.read(s);h&&o.set(r,h)}return e},i5=typeof XMLHttpRequest<"u",n5=i5&&function(t){return new Promise(function(i,n){let a=Eq(t),r=a.data,s=ai.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=ai.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};Kr(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||tp;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(jv(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]=Yr(u,!0),f.addEventListener("progress",d)),l&&f.upload&&([p,h]=Yr(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=A=>{f&&(n(!A||A.type?new pt(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)})},t5=(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 pt(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},a5=function*(t,e){let i=t.byteLength;if(i{let a=r5(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})},iq=64*1024,{isFunction:Wc}=C,nq=(t,...e)=>{try{return!!t(...e)}catch{return!1}},o5=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?Wc(a):typeof fetch=="function",l=Wc(r),u=Wc(s);if(!o)return!1;let c=o&&Wc(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&&nq(()=>{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&&nq(()=>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}=Eq(v),S=C.isNumber(se)&&se>-1,I=C.isNumber(De)&&De>-1,Ae=a||fetch;k=k?(k+"").toLowerCase():"text";let Se=t5([O,$&&$.toAbortSignal()],N),R=null,ei=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Ie;try{if(S&&typeof y=="string"&&y.startsWith("data:")&&Oq(y)>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,R);if(I&&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,R)}if(F&&d&&A!=="get"&&A!=="head"&&(Ie=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]=Kc(Ie,Yr(Qc(F)));b=eq(x.body,iq,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/"+Bo,!1);let xi={...ie,signal:Se,method:A.toUpperCase(),headers:jv(Q.normalize()),body:b,duplex:"half",credentials:Me?Z:void 0};R=l&&new r(y,xi);let Ci=await(l?Ae(R,ie):Ae(y,xi));if(S){let x=C.toFiniteNumber(Ci.headers.get("content-length"));if(x!=null&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,R)}let tn=h&&(k==="stream"||k==="response");if(h&&Ci.body&&(X||S||tn&&ei)){let x={};["status","statusText","headers"].forEach(xe=>{x[xe]=Ci[xe]});let be=C.toFiniteNumber(Ci.headers.get("content-length")),[Je,ye]=X&&Kc(be,Yr(Qc(X),!0))||[],ni=0,di=xe=>{if(S&&(ni=xe,ni>se))throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,R);Je&&Je(xe)};Ci=new s(eq(Ci.body,iq,di,()=>{ye&&ye(),ei&&ei()}),x)}k=k||"text";let G=await g[C.findKey(g,k)||"text"](Ci,v);if(S&&!h&&!tn){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,R)}return!tn&&ei&&ei(),await new Promise((x,be)=>{Kr(x,be,{data:G,headers:ai.from(Ci.headers),status:Ci.status,statusText:Ci.statusText,config:v,request:R})})}catch(Me){if(ei&&ei(),Se&&Se.aborted&&Se.reason instanceof T){let xi=Se.reason;throw xi.config=v,R&&(xi.request=R),Me!==xi&&(xi.cause=Me),xi}throw Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,v,R,Me&&Me.response),{cause:Me.cause||Me}):T.from(Me,Me&&Me.code,v,R,Me&&Me.response)}}},l5=new Map,kq=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=l5;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:o5(e)),c=u;return u};kq();var Tv={http:ZZ,xhr:n5,fetch:{get:kq}};C.forEach(Tv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var tq=t=>`- ${t}`,u5=t=>C.isFunction(t)||t===null||t===!1;function c5(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(tq).join(` +`):" "+tq(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 qq={getAdapter:c5,adapters:Tv};function pv(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new pt(null,t)}function aq(t){return pv(t),t.headers=ai.from(t.headers),t.data=uv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),qq.getAdapter(t.adapter||Ko.adapter,t)(t).then(function(n){pv(t),t.response=n;try{n.data=uv.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ai.from(n.headers),n},function(n){if(!yq(n)&&(pv(t),n&&n.response)){t.response=n.response;try{n.response.data=uv.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=ai.from(n.response.headers)}return Promise.reject(n)})}var ap={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ap[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var rq={};ap.transitional=function(e,i,n){function a(r,s){return"[Axios v"+Bo+"] 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&&!rq[s]&&(rq[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}};ap.spelling=function(e){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function p5(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 Vc={assertOptions:p5,validators:ap},mn=Vc.validators,ct=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Jc,response:new Jc}}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=za(this.defaults,i);let{transitional:n,paramsSerializer:a,headers:r}=i;n!==void 0&&$c.assertOptions(n,{silentJSONParsing:mn.transitional(mn.boolean),forcedJSONParsing:mn.transitional(mn.boolean),clarifyTimeoutError:mn.transitional(mn.boolean),legacyInterceptorReqResOrdering:mn.transitional(mn.boolean)},!1),a!=null&&(C.isFunction(a)?i.paramsSerializer={serialize:a}:$c.assertOptions(a,{encode:mn.function,serialize:mn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),$c.assertOptions(i,{baseUrl:mn.spelling("baseURL"),withXsrfToken:mn.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=[Jk.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 VZ(t){return function(i){return t.apply(null,i)}}function JZ(t){return C.isObject(t)&&t.isAxiosError===!0}var mv={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(mv).forEach(([t,e])=>{mv[e]=t});function Pq(t){let e=new lt(t),i=Xk(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 Pq(za(t,a))},i}var ai=Pq(Vo);ai.Axios=lt;ai.CanceledError=ut;ai.CancelToken=gv;ai.isCancel=dq;ai.VERSION=Uo;ai.toFormData=Zc;ai.AxiosError=T;ai.Cancel=ai.CanceledError;ai.all=function(e){return Promise.all(e)};ai.spread=VZ;ai.isAxiosError=JZ;ai.mergeConfig=za;ai.AxiosHeaders=ti;ai.formToJSON=t=>pq(C.isHTMLForm(t)?new FormData(t):t);ai.getAdapter=yq.getAdapter;ai.HttpStatusCode=mv;ai.default=ai;jq.exports=ai});var xq=w((moe,Oq)=>{Oq.exports=require("util").inspect});var Yo=w((foe,Vq)=>{var qv=typeof Map=="function"&&Map.prototype,Pv=Object.getOwnPropertyDescriptor&&qv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xc=qv&&Pv&&typeof Pv.get=="function"?Pv.get:null,Tq=qv&&Map.prototype.forEach,_v=typeof Set=="function"&&Set.prototype,jv=Object.getOwnPropertyDescriptor&&_v?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ep=_v&&jv&&typeof jv.get=="function"?jv.get:null,Mq=_v&&Set.prototype.forEach,ZZ=typeof WeakMap=="function"&&WeakMap.prototype,Zo=ZZ?WeakMap.prototype.has:null,KZ=typeof WeakSet=="function"&&WeakSet.prototype,Ko=KZ?WeakSet.prototype.has:null,QZ=typeof WeakRef=="function"&&WeakRef.prototype,Eq=QZ?WeakRef.prototype.deref:null,YZ=Boolean.prototype.valueOf,XZ=Object.prototype.toString,e5=Function.prototype.toString,i5=String.prototype.match,Hv=String.prototype.slice,Gt=String.prototype.replace,n5=String.prototype.toUpperCase,kq=String.prototype.toLowerCase,$q=RegExp.prototype.test,qq=Array.prototype.concat,Nn=Array.prototype.join,t5=Array.prototype.slice,_q=Math.floor,xv=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Sv=Object.getOwnPropertySymbols,Tv=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,Nq=Object.prototype.propertyIsEnumerable,Hq=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Rq(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||$q.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-_q(-t):_q(t);if(n!==t){var a=String(n),r=Hv.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 Mv=xq(),Iq=Mv.custom,zq=Wq(Iq)?Iq:null,Uq={__proto__:null,double:'"',single:"'"},a5={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Vq.exports=function t(e,i,n,a){var r=i||{};if(ct(r,"quoteStyle")&&!ct(Uq,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 Fq(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?Rq(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?Rq(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 Ev(e)?"[Array]":"[Object]";var p=y5(r,n);if(typeof a>"u")a=[];else if(Bq(a,e)>=0)return"[Circular]";function d(ie,se,De){if(se&&(a=t5.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"&&!Dq(e)){var h=h5(e),g=Yc(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+Nn.call(g,", ")+" }":"")}if(Wq(e)){var m=Yr?Gt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Tv.call(e);return typeof e=="object"&&!Yr?Jo(m):m}if(C5(e)){for(var f="<"+kq.call(String(e.nodeName)),v=e.attributes||[],y=0;y",f}if(Ev(e)){if(e.length===0)return"[]";var A=Yc(e,d);return p&&!b5(A)?"["+kv(A,p)+"]":"[ "+Nn.call(A,", ")+" ]"}if(o5(e)){var b=Yc(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Nq.call(e,"cause")?"{ ["+String(e)+"] "+Nn.call(qq.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nn.call(b,", ")+" }"}if(typeof e=="object"&&s){if(zq&&typeof e[zq]=="function"&&Mv)return Mv(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(g5(e)){var O=[];return Tq&&Tq.call(e,function(ie,se){O.push(d(se,e,!0)+" => "+d(ie,e))}),Gq("Map",Xc.call(e),O,p)}if(w5(e)){var $=[];return Mq&&Mq.call(e,function(ie){$.push(d(ie,e))}),Gq("Set",ep.call(e),$,p)}if(m5(e))return Ov("WeakMap");if(v5(e))return Ov("WeakSet");if(f5(e))return Ov("WeakRef");if(u5(e))return Jo(d(Number(e)));if(p5(e))return Jo(d(xv.call(e)));if(c5(e))return Jo(YZ.call(e));if(l5(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(!s5(e)&&!Dq(e)){var N=Yc(e,d),X=Hq?Hq(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",k=!X&&Qo&&Object(e)===e&&Qo in e?Hv.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(qq.call([],k||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+kv(N,p)+"}":Z+"{ "+Nn.call(N,", ")+" }"}return String(e)};function Lq(t,e,i){var n=i.quoteStyle||e,a=Uq[n];return a+t+a}function r5(t){return Gt.call(String(t),/"/g,""")}function Da(t){return!Qo||!(typeof t=="object"&&(Qo in t||typeof t[Qo]<"u"))}function Ev(t){return $t(t)==="[object Array]"&&Da(t)}function s5(t){return $t(t)==="[object Date]"&&Da(t)}function Dq(t){return $t(t)==="[object RegExp]"&&Da(t)}function o5(t){return $t(t)==="[object Error]"&&Da(t)}function l5(t){return $t(t)==="[object String]"&&Da(t)}function u5(t){return $t(t)==="[object Number]"&&Da(t)}function c5(t){return $t(t)==="[object Boolean]"&&Da(t)}function Wq(t){if(Yr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Tv)return!1;try{return Tv.call(t),!0}catch{}return!1}function p5(t){if(!t||typeof t!="object"||!xv)return!1;try{return xv.call(t),!0}catch{}return!1}var d5=Object.prototype.hasOwnProperty||function(t){return t in this};function ct(t,e){return d5.call(t,e)}function $t(t){return XZ.call(t)}function h5(t){if(t.name)return t.name;var e=i5.call(e5.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Bq(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 Fq(Hv.call(t,0,e.maxStringLength),e)+n}var a=a5[e.quoteStyle||"single"];a.lastIndex=0;var r=Gt.call(Gt.call(t,a,"\\$1"),/[\x00-\x1f]/g,A5);return Lq(r,"single",e)}function A5(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":"")+n5.call(e.toString(16))}function Jo(t){return"Object("+t+")"}function Ov(t){return t+" { ? }"}function Gq(t,e,i,n){var a=n?kv(i,n):Nn.call(i,", ");return t+" ("+e+") {"+a+"}"}function b5(t){for(var e=0;e=0)return!1;return!0}function y5(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 kv(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=Ga(this.defaults,i);let{transitional:n,paramsSerializer:a,headers:r}=i;n!==void 0&&Vc.assertOptions(n,{silentJSONParsing:mn.transitional(mn.boolean),forcedJSONParsing:mn.transitional(mn.boolean),clarifyTimeoutError:mn.transitional(mn.boolean),legacyInterceptorReqResOrdering:mn.transitional(mn.boolean)},!1),a!=null&&(C.isFunction(a)?i.paramsSerializer={serialize:a}:Vc.assertOptions(a,{encode:mn.function,serialize:mn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Vc.assertOptions(i,{baseUrl:mn.spelling("baseURL"),withXsrfToken:mn.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=ai.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||tp;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=[aq.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 pt(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 d5(t){return function(i){return t.apply(null,i)}}function h5(t){return C.isObject(t)&&t.isAxiosError===!0}var bv={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(bv).forEach(([t,e])=>{bv[e]=t});function _q(t){let e=new ct(t),i=uq(ct.prototype.request,e);return C.extend(i,ct.prototype,e,{allOwnKeys:!0}),C.extend(i,e,null,{allOwnKeys:!0}),i.create=function(a){return _q(Ga(t,a))},i}var ri=_q(Ko);ri.Axios=ct;ri.CanceledError=pt;ri.CancelToken=Av;ri.isCancel=yq;ri.VERSION=Bo;ri.toFormData=np;ri.AxiosError=T;ri.Cancel=ri.CanceledError;ri.all=function(e){return Promise.all(e)};ri.spread=d5;ri.isAxiosError=h5;ri.mergeConfig=Ga;ri.AxiosHeaders=ai;ri.formToJSON=t=>bq(C.isHTMLForm(t)?new FormData(t):t);ri.getAdapter=qq.getAdapter;ri.HttpStatusCode=bv;ri.default=ri;Hq.exports=ri});var zq=w((ele,Rq)=>{Rq.exports=require("util").inspect});var il=w((ile,t_)=>{var Dv=typeof Map=="function"&&Map.prototype,Mv=Object.getOwnPropertyDescriptor&&Dv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,sp=Dv&&Mv&&typeof Mv.get=="function"?Mv.get:null,Dq=Dv&&Map.prototype.forEach,Gv=typeof Set=="function"&&Set.prototype,Ev=Object.getOwnPropertyDescriptor&&Gv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,op=Gv&&Ev&&typeof Ev.get=="function"?Ev.get:null,Gq=Gv&&Set.prototype.forEach,g5=typeof WeakMap=="function"&&WeakMap.prototype,Yo=g5?WeakMap.prototype.has:null,m5=typeof WeakSet=="function"&&WeakSet.prototype,Xo=m5?WeakSet.prototype.has:null,f5=typeof WeakRef=="function"&&WeakRef.prototype,$q=f5?WeakRef.prototype.deref:null,w5=Boolean.prototype.valueOf,v5=Object.prototype.toString,C5=Function.prototype.toString,A5=String.prototype.match,$v=String.prototype.slice,Nt=String.prototype.replace,b5=String.prototype.toUpperCase,Nq=String.prototype.toLowerCase,Kq=RegExp.prototype.test,Uq=Array.prototype.concat,Nn=Array.prototype.join,y5=Array.prototype.slice,Lq=Math.floor,_v=typeof BigInt=="function"?BigInt.prototype.valueOf:null,kv=Object.getOwnPropertySymbols,Hv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,es=typeof Symbol=="function"&&typeof Symbol.iterator=="object",el=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===es||!0)?Symbol.toStringTag:null,Qq=Object.prototype.propertyIsEnumerable,Wq=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Bq(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Kq.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Lq(-t):Lq(t);if(n!==t){var a=String(n),r=$v.call(e,a.length+1);return Nt.call(a,i,"$&_")+"."+Nt.call(Nt.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Nt.call(e,i,"$&_")}var Iv=zq(),Fq=Iv.custom,Vq=e_(Fq)?Fq:null,Yq={__proto__:null,double:'"',single:"'"},P5={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t_.exports=function t(e,i,n,a){var r=i||{};if(dt(r,"quoteStyle")&&!dt(Yq,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(dt(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=dt(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(dt(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(dt(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 n_(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?Bq(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?Bq(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 Rv(e)?"[Array]":"[Object]";var p=N5(r,n);if(typeof a>"u")a=[];else if(i_(a,e)>=0)return"[Circular]";function d(ie,se,De){if(se&&(a=y5.call(a),a.push(se)),De){var S={depth:r.depth};return dt(r,"quoteStyle")&&(S.quoteStyle=r.quoteStyle),t(ie,S,n+1,a)}return t(ie,r,n+1,a)}if(typeof e=="function"&&!Jq(e)){var h=q5(e),g=rp(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+Nn.call(g,", ")+" }":"")}if(e_(e)){var m=es?Nt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Hv.call(e);return typeof e=="object"&&!es?Qo(m):m}if(D5(e)){for(var f="<"+Nq.call(String(e.nodeName)),v=e.attributes||[],y=0;y",f}if(Rv(e)){if(e.length===0)return"[]";var A=rp(e,d);return p&&!$5(A)?"["+zv(A,p)+"]":"[ "+Nn.call(A,", ")+" ]"}if(O5(e)){var b=rp(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Qq.call(e,"cause")?"{ ["+String(e)+"] "+Nn.call(Uq.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nn.call(b,", ")+" }"}if(typeof e=="object"&&s){if(Vq&&typeof e[Vq]=="function"&&Iv)return Iv(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_5(e)){var O=[];return Dq&&Dq.call(e,function(ie,se){O.push(d(se,e,!0)+" => "+d(ie,e))}),Zq("Map",sp.call(e),O,p)}if(R5(e)){var $=[];return Gq&&Gq.call(e,function(ie){$.push(d(ie,e))}),Zq("Set",op.call(e),$,p)}if(H5(e))return qv("WeakMap");if(z5(e))return qv("WeakSet");if(I5(e))return qv("WeakRef");if(T5(e))return Qo(d(Number(e)));if(E5(e))return Qo(d(_v.call(e)));if(M5(e))return Qo(w5.call(e));if(x5(e))return Qo(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(!S5(e)&&!Jq(e)){var N=rp(e,d),X=Wq?Wq(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",k=!X&&el&&Object(e)===e&&el in e?$v.call(Ut(e),8,-1):F?"Object":"",Q=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=Q+(k||F?"["+Nn.call(Uq.call([],k||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+zv(N,p)+"}":Z+"{ "+Nn.call(N,", ")+" }"}return String(e)};function Xq(t,e,i){var n=i.quoteStyle||e,a=Yq[n];return a+t+a}function j5(t){return Nt.call(String(t),/"/g,""")}function $a(t){return!el||!(typeof t=="object"&&(el in t||typeof t[el]<"u"))}function Rv(t){return Ut(t)==="[object Array]"&&$a(t)}function S5(t){return Ut(t)==="[object Date]"&&$a(t)}function Jq(t){return Ut(t)==="[object RegExp]"&&$a(t)}function O5(t){return Ut(t)==="[object Error]"&&$a(t)}function x5(t){return Ut(t)==="[object String]"&&$a(t)}function T5(t){return Ut(t)==="[object Number]"&&$a(t)}function M5(t){return Ut(t)==="[object Boolean]"&&$a(t)}function e_(t){if(es)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Hv)return!1;try{return Hv.call(t),!0}catch{}return!1}function E5(t){if(!t||typeof t!="object"||!_v)return!1;try{return _v.call(t),!0}catch{}return!1}var k5=Object.prototype.hasOwnProperty||function(t){return t in this};function dt(t,e){return k5.call(t,e)}function Ut(t){return v5.call(t)}function q5(t){if(t.name)return t.name;var e=A5.call(C5.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function i_(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 n_($v.call(t,0,e.maxStringLength),e)+n}var a=P5[e.quoteStyle||"single"];a.lastIndex=0;var r=Nt.call(Nt.call(t,a,"\\$1"),/[\x00-\x1f]/g,G5);return Xq(r,"single",e)}function G5(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":"")+b5.call(e.toString(16))}function Qo(t){return"Object("+t+")"}function qv(t){return t+" { ? }"}function Zq(t,e,i,n){var a=n?zv(i,n):Nn.call(i,", ");return t+" ("+e+") {"+a+"}"}function $5(t){for(var e=0;e=0)return!1;return!0}function N5(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 zv(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=Ev(t),n=[];if(i){n.length=t.length;for(var a=0;a{"use strict";var P5=Yo(),j5=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},S5=function(t,e){if(t){var i=ip(t,e);return i&&i.value}},O5=function(t,e,i){var n=ip(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}},x5=function(t,e){return t?!!ip(t,e):!1},T5=function(t,e){if(t)return ip(t,e,!0)};Jq.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new j5("Side channel does not contain "+P5(n))},delete:function(n){var a=T5(e,n);return a&&e&&!e.next&&(e=void 0),!!a},get:function(n){return S5(e,n)},has:function(n){return x5(e,n)},set:function(n,a){e||(e={next:void 0}),O5(e,n,a)}};return i}});var Rv=w((voe,Yq)=>{"use strict";var Kq=ko(),Qq=jw(),M5=Qq([Kq("%String.prototype.indexOf%")]);Yq.exports=function(e,i){var n=Kq(e,!!i);return typeof n=="function"&&M5(e,".prototype.")>-1?Qq([n]):n}});var Iv=w((Coe,e_)=>{"use strict";var E5=ko(),Xo=Rv(),k5=Yo(),q5=It(),Xq=E5("%Map%",!0),_5=Xo("Map.prototype.get",!0),H5=Xo("Map.prototype.set",!0),R5=Xo("Map.prototype.has",!0),I5=Xo("Map.prototype.delete",!0),z5=Xo("Map.prototype.size",!0);e_.exports=!!Xq&&function(){var e,i={assert:function(n){if(!i.has(n))throw new q5("Side channel does not contain "+k5(n))},delete:function(n){if(e){var a=I5(e,n);return z5(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return _5(e,n)},has:function(n){return e?R5(e,n):!1},set:function(n,a){e||(e=new Xq),H5(e,n,a)}};return i}});var n_=w((Aoe,i_)=>{"use strict";var D5=ko(),tp=Rv(),G5=Yo(),np=Iv(),$5=It(),Xr=D5("%WeakMap%",!0),N5=tp("WeakMap.prototype.get",!0),U5=tp("WeakMap.prototype.set",!0),L5=tp("WeakMap.prototype.has",!0),W5=tp("WeakMap.prototype.delete",!0);i_.exports=Xr?function(){var e,i,n={assert:function(a){if(!n.has(a))throw new $5("Side channel does not contain "+G5(a))},delete:function(a){if(Xr&&a&&(typeof a=="object"||typeof a=="function")){if(e)return W5(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?N5(e,a):i&&i.get(a)},has:function(a){return Xr&&a&&(typeof a=="object"||typeof a=="function")&&e?L5(e,a):!!i&&i.has(a)},set:function(a,r){Xr&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Xr),U5(e,a,r)):np&&(i||(i=np()),i.set(a,r))}};return n}:np});var zv=w((boe,t_)=>{"use strict";var B5=It(),F5=Yo(),V5=Zq(),J5=Iv(),Z5=n_(),K5=Z5||J5||V5;t_.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new B5("Side channel does not contain "+F5(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=K5()),e.set(n,a)}};return i}});var ap=w((yoe,a_)=>{"use strict";var Q5=String.prototype.replace,Y5=/%20/g,Dv={RFC1738:"RFC1738",RFC3986:"RFC3986"};a_.exports={default:Dv.RFC3986,formatters:{RFC1738:function(t){return Q5.call(t,Y5,"+")},RFC3986:function(t){return String(t)}},RFC1738:Dv.RFC1738,RFC3986:Dv.RFC3986}});var Uv=w((Poe,r_)=>{"use strict";var X5=ap(),eK=zv(),Gv=Object.prototype.hasOwnProperty,Ga=Array.isArray,rp=eK(),es=function(e,i){return rp.set(e,i),e},$a=function(e){return rp.has(e)},el=function(e){return rp.get(e)},Nv=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})(),iK=function(e){for(;e.length>1;){var i=e.pop(),n=i.obj[i.prop];if(Ga(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($a(e)){var r=el(e)+1;e[r]=i,Nv(e,r)}else{if(n&&n.strictMerge)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!Gv.call(Object.prototype,i))&&(e[i]=!0)}else return[e,i];return e}if(!e||typeof e!="object"){if($a(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 Ga(e)&&!Ga(i)&&(p=il(e,n)),Ga(e)&&Ga(i)?(i.forEach(function(d,h){if(Gv.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(Gv.call(d,h)?d[h]=t(d[h],g,n):d[h]=g,$a(i)&&!$a(d)&&es(d,el(i)),$a(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>el(d)&&Nv(d,m)}return d},p)},tK=function(e,i){return Object.keys(i).reduce(function(n,a){return n[a]=i[a],n},e)},aK=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}},$v=1024,rK=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=$v?s.slice(l,l+$v):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===X5.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},sK=function(e){for(var i=[{obj:{o:e},prop:"o"}],n=[],a=0;an?es(il(s,{plainObjects:a}),s.length-1):s},cK=function(e,i){if(Ga(e)){for(var n=[],a=0;a{"use strict";var o_=zv(),sp=Uv(),nl=ap(),pK=Object.prototype.hasOwnProperty,l_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},Ln=Array.isArray,dK=Array.prototype.push,u_=function(t,e){dK.apply(t,Ln(e)?e:[e])},hK=Date.prototype.toISOString,s_=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:s_,formatter:nl.formatters[s_],indices:!1,serializeDate:function(e){return hK.call(e)},skipNulls:!1,strictNullHandling:!1},gK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Lv={},mK=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(Lv))!==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(Lv)>"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(gK(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}};c_.exports=function(t,e){var i=t,n=fK(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=l_[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(i)),n.sort&&a.sort(n.sort);for(var u=o_(),c=0;c"u"||p===null)){var d=i[p];n.skipNulls&&d===null||u_(s,mK(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 g_=w((Soe,h_)=>{"use strict";var Wn=Uv(),op=Object.prototype.hasOwnProperty,Wv=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},wK=function(t){return t.replace(/&#(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},d_=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},vK="utf8=%26%2310003%3B",CK="utf8=%E2%9C%93",AK=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=Wv(g)?[g]:g),i.comma&&Wv(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},bK=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:d_(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},PK=function(e,i,n,a){if(e){var r=yK(e,n);if(r)return bK(r,i,n,a)}},jK=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}};h_.exports=function(t,e){var i=jK(e);if(t===""||t===null||typeof t>"u")return i.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?AK(t,i):t,a=i.plainObjects?{__proto__:null}:{},r=Object.keys(n),s=0;s{"use strict";var SK=p_(),OK=g_(),xK=ap();m_.exports={formats:xK,parse:OK,stringify:SK}});var Ki=w((xoe,w_)=>{"use strict";var Bv=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts) +`+e.prev}function rp(t,e){var i=Rv(t),n=[];if(i){n.length=t.length;for(var a=0;a{"use strict";var U5=il(),L5=Dt(),lp=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},W5=function(t,e){if(t){var i=lp(t,e);return i&&i.value}},B5=function(t,e,i){var n=lp(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}},F5=function(t,e){return t?!!lp(t,e):!1},V5=function(t,e){if(t)return lp(t,e,!0)};a_.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new L5("Side channel does not contain "+U5(n))},delete:function(n){var a=V5(e,n);return a&&e&&!e.next&&(e=void 0),!!a},get:function(n){return W5(e,n)},has:function(n){return F5(e,n)},set:function(n,a){e||(e={next:void 0}),B5(e,n,a)}};return i}});var Nv=w((tle,l_)=>{"use strict";var s_=Ho(),o_=Ew(),J5=o_([s_("%String.prototype.indexOf%")]);l_.exports=function(e,i){var n=s_(e,!!i);return typeof n=="function"&&J5(e,".prototype.")>-1?o_([n]):n}});var Uv=w((ale,c_)=>{"use strict";var Z5=Ho(),nl=Nv(),K5=il(),Q5=Dt(),u_=Z5("%Map%",!0),Y5=nl("Map.prototype.get",!0),X5=nl("Map.prototype.set",!0),eK=nl("Map.prototype.has",!0),iK=nl("Map.prototype.delete",!0),nK=nl("Map.prototype.size",!0);c_.exports=!!u_&&function(){var e,i={assert:function(n){if(!i.has(n))throw new Q5("Side channel does not contain "+K5(n))},delete:function(n){if(e){var a=iK(e,n);return nK(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return Y5(e,n)},has:function(n){return e?eK(e,n):!1},set:function(n,a){e||(e=new u_),X5(e,n,a)}};return i}});var d_=w((rle,p_)=>{"use strict";var tK=Ho(),cp=Nv(),aK=il(),up=Uv(),rK=Dt(),is=tK("%WeakMap%",!0),sK=cp("WeakMap.prototype.get",!0),oK=cp("WeakMap.prototype.set",!0),lK=cp("WeakMap.prototype.has",!0),uK=cp("WeakMap.prototype.delete",!0);p_.exports=is?function(){var e,i,n={assert:function(a){if(!n.has(a))throw new rK("Side channel does not contain "+aK(a))},delete:function(a){if(is&&a&&(typeof a=="object"||typeof a=="function")){if(e)return uK(e,a)}else if(up&&i)return i.delete(a);return!1},get:function(a){return is&&a&&(typeof a=="object"||typeof a=="function")&&e?sK(e,a):i&&i.get(a)},has:function(a){return is&&a&&(typeof a=="object"||typeof a=="function")&&e?lK(e,a):!!i&&i.has(a)},set:function(a,r){is&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new is),oK(e,a,r)):up&&(i||(i=up()),i.set(a,r))}};return n}:up});var Lv=w((sle,h_)=>{"use strict";var cK=Dt(),pK=il(),dK=r_(),hK=Uv(),gK=d_(),mK=gK||hK||dK;h_.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new cK("Side channel does not contain "+pK(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=mK()),e.set(n,a)}};return i}});var pp=w((ole,g_)=>{"use strict";var fK=String.prototype.replace,wK=/%20/g,Wv={RFC1738:"RFC1738",RFC3986:"RFC3986"};g_.exports={default:Wv.RFC3986,formatters:{RFC1738:function(t){return fK.call(t,wK,"+")},RFC3986:function(t){return String(t)}},RFC1738:Wv.RFC1738,RFC3986:Wv.RFC3986}});var Jv=w((lle,m_)=>{"use strict";var vK=pp(),CK=Lv(),Bv=Object.prototype.hasOwnProperty,Na=Array.isArray,dp=CK(),ns=function(e,i){return dp.set(e,i),e},Ua=function(e){return dp.has(e)},tl=function(e){return dp.get(e)},Vv=function(e,i){dp.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})(),AK=function(e){for(;e.length>1;){var i=e.pop(),n=i.obj[i.prop];if(Na(n)){for(var a=[],r=0;rn.arrayLimit)return ns(al(e.concat(i),n),a);e[a]=i}else if(e&&typeof e=="object")if(Ua(e)){var r=tl(e)+1;e[r]=i,Vv(e,r)}else{if(n&&n.strictMerge)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!Bv.call(Object.prototype,i))&&(e[i]=!0)}else return[e,i];return e}if(!e||typeof e!="object"){if(Ua(i)){for(var s=Object.keys(i),o=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;ln.arrayLimit?ns(al(c,n),c.length-1):c}var p=e;return Na(e)&&!Na(i)&&(p=al(e,n)),Na(e)&&Na(i)?(i.forEach(function(d,h){if(Bv.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(Bv.call(d,h)?d[h]=t(d[h],g,n):d[h]=g,Ua(i)&&!Ua(d)&&ns(d,tl(i)),Ua(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>tl(d)&&Vv(d,m)}return d},p)},yK=function(e,i){return Object.keys(i).reduce(function(n,a){return n[a]=i[a],n},e)},PK=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}},Fv=1024,jK=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=Fv?s.slice(l,l+Fv):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===vK.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},SK=function(e){for(var i=[{obj:{o:e},prop:"o"}],n=[],a=0;an?ns(al(s,{plainObjects:a}),s.length-1):s},MK=function(e,i){if(Na(e)){for(var n=[],a=0;a{"use strict";var w_=Lv(),hp=Jv(),rl=pp(),EK=Object.prototype.hasOwnProperty,v_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},Ln=Array.isArray,kK=Array.prototype.push,C_=function(t,e){kK.apply(t,Ln(e)?e:[e])},qK=Date.prototype.toISOString,f_=rl.default,li={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:hp.encode,encodeValuesOnly:!1,filter:void 0,format:f_,formatter:rl.formatters[f_],indices:!1,serializeDate:function(e){return qK.call(e)},skipNulls:!1,strictNullHandling:!1},_K=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Zv={},HK=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(Zv))!==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(Zv)>"u"&&(O=0)}if(typeof c=="function"?A=c(i,A):A instanceof Date?A=h(A):n==="comma"&&Ln(A)&&(A=hp.maybeMap(A,function(R){return R instanceof Date?h(R):R})),A===null){if(s)return m(u&&!f?u(i,li.encoder,v,"key",g):i);A=""}if(_K(A)||hp.isBuffer(A)){if(u){var X=f?i:u(i,li.encoder,v,"key",g);return[m(X)+"="+m(u(A,li.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=hp.maybeMap(A,function(R){return R==null?R:u(R)})),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:li.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:li.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:li.allowEmptyArrays,arrayFormat:s,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:li.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?li.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:li.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:li.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:li.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:li.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:li.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:li.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:li.strictNullHandling}};A_.exports=function(t,e){var i=t,n=IK(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=v_[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(i)),n.sort&&a.sort(n.sort);for(var u=w_(),c=0;c"u"||p===null)){var d=i[p];n.skipNulls&&d===null||C_(s,HK(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 j_=w((cle,P_)=>{"use strict";var Wn=Jv(),gp=Object.prototype.hasOwnProperty,Kv=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},RK=function(t){return t.replace(/&#(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},y_=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},zK="utf8=%26%2310003%3B",DK="utf8=%E2%9C%93",GK=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=Kv(g)?[g]:g),i.comma&&Kv(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=gp.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},$K=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:y_(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&&gp.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},UK=function(e,i,n,a){if(e){var r=NK(e,n);if(r)return $K(r,i,n,a)}},LK=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=LK(e);if(t===""||t===null||typeof t>"u")return i.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?GK(t,i):t,a=i.plainObjects?{__proto__:null}:{},r=Object.keys(n),s=0;s{"use strict";var WK=b_(),BK=j_(),FK=pp();S_.exports={formats:FK,parse:BK,stringify:WK}});var Ki=w((dle,x_)=>{"use strict";var Qv=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)}};w_.exports=t=>{if(t.length>2)throw new Bv(t);function e(n={}){this.options=n}e.prototype.transform=t;function i(n){return new e(n)}return i.Format=e,i}});var b_=w((Toe,A_)=>{var C_={};A_.exports=C_;var v_={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(v_).forEach(function(t){var e=v_[t],i=C_[t]=[];i.open="\x1B["+e[0]+"m",i.close="\x1B["+e[1]+"m"})});var P_=w((Moe,y_)=>{"use strict";y_.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 TK=require("os"),Mn=P_(),zi=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 zi&&(is=zi.FORCE_COLOR.length===0||parseInt(zi.FORCE_COLOR,10)!==0);function MK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function EK(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=TK.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 zi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in zi})||zi.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in zi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(zi.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in zi){var n=parseInt((zi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(zi.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(zi.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(zi.TERM)||"COLORTERM"in zi?1:(zi.TERM==="dumb",e)}function Fv(t){var e=EK(t);return MK(e)}j_.exports={supportsColor:Fv,stdout:Fv(process.stdout),stderr:Fv(process.stderr)}});var x_=w((koe,O_)=>{O_.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 M_=w((qoe,T_)=>{T_.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 k_=w((_oe,E_)=>{E_.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 __=w((Hoe,q_)=>{q_.exports=function(t){return function(e,i,n){return i%2===0?e:t.inverse(e)}}});var R_=w((Roe,H_)=>{H_.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 z_=w((Ioe,I_)=>{I_.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 L_=w((Doe,U_)=>{var de={};U_.exports=de;de.themes={};var kK=require("util"),Na=de.styles=b_(),G_=Object.defineProperties,qK=new RegExp(/[\r\n]+/g);de.supportsColor=S_().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 zoe=de.stylize=function(e,i){if(!de.enabled)return e+"";var n=Na[i];return!n&&i in de?de[i](e):n.open+e+n.close},_K=/[|\\{}()[\]^$+*?.]/g,HK=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(_K,"\\$&")};function $_(t){var e=function i(){return IK.apply(i,arguments)};return e._styles=t,e.__proto__=RK,e}var N_=(function(){var t={};return Na.grey=Na.gray,Object.keys(Na).forEach(function(e){Na[e].closeRe=new RegExp(HK(Na[e].close),"g"),t[e]={get:function(){return $_(this._styles.concat(e))}}}),t})(),RK=G_(function(){},N_);function IK(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:kK.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var i=e.indexOf(` -`)!=-1,n=this._styles,a=n.length;a--;){var r=Na[n[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,i&&(e=e.replace(qK,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 zK(){var t={};return Object.keys(N_).forEach(function(e){t[e]={get:function(){return $_([e])}}}),t}var DK=function(e,i){var n=i.split("");return n=n.map(e),n.join("")};de.trap=x_();de.zalgo=M_();de.maps={};de.maps.america=k_()(de);de.maps.zebra=__()(de);de.maps.rainbow=R_()(de);de.maps.random=z_()(de);for(D_ in de.maps)(function(t){de[t]=function(e){return DK(de.maps[t],e)}})(D_);var D_;G_(de,zK())});var Vv=w((Goe,W_)=>{var GK=L_();W_.exports=GK});var B_=w(Jv=>{"use strict";Jv.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Jv.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var F_=w(Zv=>{"use strict";Zv.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Zv.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var V_=w(Kv=>{"use strict";Kv.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Kv.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var J_=w(lp=>{"use strict";Object.defineProperty(lp,"cli",{value:B_()});Object.defineProperty(lp,"npm",{value:F_()});Object.defineProperty(lp,"syslog",{value:V_()})});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:J_()})});var pp=w((Boe,cp)=>{"use strict";var Xv=Vv(),{LEVEL:Qv,MESSAGE:Yv}=ri();Xv.enabled=!0;var Z_=/\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]=Z_.test(e[a])?e[a].split(Z_):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 Xv[t.allColors[e]](n);for(let a=0,r=t.allColors[e].length;anew up(t);cp.exports.Colorizer=cp.exports.Format=up});var Q_=w((Foe,K_)=>{"use strict";var{Colorizer:$K}=pp();K_.exports=t=>($K.addColors(t.colors||t),t)});var X_=w((Voe,Y_)=>{"use strict";var NK=Ki();Y_.exports=NK(t=>(t.message=` ${t.message}`,t))});var n2=w((Joe,i2)=>{"use strict";var UK=Ki(),{LEVEL:e2,MESSAGE:eC}=ri();i2.exports=UK((t,{stack:e,cause:i})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[e2]:t[e2]||t.level,message:t.message,[eC]:t[eC]||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[eC]=n.message,e&&(t.stack=n.stack),i&&(t.cause=n.cause),t})});var nC=w((Zoe,hp)=>{"use strict";var{configs:LK,LEVEL:t2,MESSAGE:iC}=ri(),dp=class t{constructor(e={levels:LK.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[t2]]}${e.message}`,e[iC]&&(e[iC]=`${this.paddings[e[t2]]}${e[iC]}`),e}};hp.exports=t=>new dp(t);hp.exports.Padder=hp.exports.Format=dp});var a2=w((Koe,tC)=>{"use strict";var{Colorizer:WK}=pp(),{Padder:BK}=nC(),{configs:FK,MESSAGE:VK}=ri(),gp=class{constructor(e={}){e.levels||(e.levels=FK.cli.levels),this.colorizer=new WK(e),this.padder=new BK(e),this.options=e}transform(e,i){return this.colorizer.transform(this.padder.transform(e,i),i),e[VK]=`${e.level}:${e.message}`,e}};tC.exports=t=>new gp(t);tC.exports.Format=gp});var s2=w((Qoe,aC)=>{"use strict";var JK=Ki();function r2(t){if(t.every(ZK))return e=>{let i=e;for(let n=0;n{let e=JK(r2(t)),i=e();return i.Format=e.Format,i};aC.exports.cascade=r2});var rl=w((lC,u2)=>{"use strict";var{hasOwnProperty:al}=Object.prototype,La=oC();La.configure=oC;La.stringify=La;La.default=La;lC.stringify=La;lC.configure=oC;u2.exports=La;var KK=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Nt(t){return t.length<5e3&&!KK.test(t)?`"${t}"`:JSON.stringify(t)}function rC(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 QK=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function sC(t){return QK.call(t)!==void 0&&t.length!==0}function o2(t,e,i){t.length= 1`)}return i===void 0?1/0:i}function Ua(t){return t===1?"1 item":`${t} items`}function i9(t){let e=new Set;for(let i of t)(typeof i=="string"||typeof i=="number")&&e.add(String(i));return e}function n9(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 oC(t){t={...t};let e=n9(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let i=YK(t),n=e9(t,"bigint"),a=XK(t),r=typeof a=="function"?a:void 0,s=l2(t,"maximumDepth"),o=l2(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 Qv(t);function e(n={}){this.options=n}e.prototype.transform=t;function i(n){return new e(n)}return i.Format=e,i}});var k_=w((hle,E_)=>{var M_={};E_.exports=M_;var T_={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(T_).forEach(function(t){var e=T_[t],i=M_[t]=[];i.open="\x1B["+e[0]+"m",i.close="\x1B["+e[1]+"m"})});var __=w((gle,q_)=>{"use strict";q_.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 VK=require("os"),Mn=__(),zi=process.env,ts=void 0;Mn("no-color")||Mn("no-colors")||Mn("color=false")?ts=!1:(Mn("color")||Mn("colors")||Mn("color=true")||Mn("color=always"))&&(ts=!0);"FORCE_COLOR"in zi&&(ts=zi.FORCE_COLOR.length===0||parseInt(zi.FORCE_COLOR,10)!==0);function JK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function ZK(t){if(ts===!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&&ts!==!0)return 0;var e=ts?1:0;if(process.platform==="win32"){var i=VK.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 zi)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in zi})||zi.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in zi)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(zi.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in zi){var n=parseInt((zi.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(zi.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(zi.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(zi.TERM)||"COLORTERM"in zi?1:(zi.TERM==="dumb",e)}function Yv(t){var e=ZK(t);return JK(e)}H_.exports={supportsColor:Yv,stdout:Yv(process.stdout),stderr:Yv(process.stderr)}});var z_=w((fle,R_)=>{R_.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 G_=w((wle,D_)=>{D_.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 N_=w((vle,$_)=>{$_.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 L_=w((Cle,U_)=>{U_.exports=function(t){return function(e,i,n){return i%2===0?e:t.inverse(e)}}});var B_=w((Ale,W_)=>{W_.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 V_=w((ble,F_)=>{F_.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 X_=w((Ple,Y_)=>{var de={};Y_.exports=de;de.themes={};var KK=require("util"),La=de.styles=k_(),Z_=Object.defineProperties,QK=new RegExp(/[\r\n]+/g);de.supportsColor=I_().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 yle=de.stylize=function(e,i){if(!de.enabled)return e+"";var n=La[i];return!n&&i in de?de[i](e):n.open+e+n.close},YK=/[|\\{}()[\]^$+*?.]/g,XK=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(YK,"\\$&")};function K_(t){var e=function i(){return i9.apply(i,arguments)};return e._styles=t,e.__proto__=e9,e}var Q_=(function(){var t={};return La.grey=La.gray,Object.keys(La).forEach(function(e){La[e].closeRe=new RegExp(XK(La[e].close),"g"),t[e]={get:function(){return K_(this._styles.concat(e))}}}),t})(),e9=Z_(function(){},Q_);function i9(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:KK.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var i=e.indexOf(` +`)!=-1,n=this._styles,a=n.length;a--;){var r=La[n[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,i&&(e=e.replace(QK,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 n9(){var t={};return Object.keys(Q_).forEach(function(e){t[e]={get:function(){return K_([e])}}}),t}var t9=function(e,i){var n=i.split("");return n=n.map(e),n.join("")};de.trap=z_();de.zalgo=G_();de.maps={};de.maps.america=N_()(de);de.maps.zebra=L_()(de);de.maps.rainbow=B_()(de);de.maps.random=V_()(de);for(J_ in de.maps)(function(t){de[t]=function(e){return t9(de.maps[t],e)}})(J_);var J_;Z_(de,n9())});var Xv=w((jle,e2)=>{var a9=X_();e2.exports=a9});var i2=w(eC=>{"use strict";eC.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};eC.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var n2=w(iC=>{"use strict";iC.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};iC.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var t2=w(nC=>{"use strict";nC.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};nC.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var a2=w(mp=>{"use strict";Object.defineProperty(mp,"cli",{value:i2()});Object.defineProperty(mp,"npm",{value:n2()});Object.defineProperty(mp,"syslog",{value:t2()})});var si=w(sl=>{"use strict";Object.defineProperty(sl,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(sl,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(sl,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(sl,"configs",{value:a2()})});var vp=w((Ele,wp)=>{"use strict";var rC=Xv(),{LEVEL:tC,MESSAGE:aC}=si();rC.enabled=!0;var r2=/\s+/,fp=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]=r2.test(e[a])?e[a].split(r2):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 rC[t.allColors[e]](n);for(let a=0,r=t.allColors[e].length;anew fp(t);wp.exports.Colorizer=wp.exports.Format=fp});var o2=w((kle,s2)=>{"use strict";var{Colorizer:r9}=vp();s2.exports=t=>(r9.addColors(t.colors||t),t)});var u2=w((qle,l2)=>{"use strict";var s9=Ki();l2.exports=s9(t=>(t.message=` ${t.message}`,t))});var d2=w((_le,p2)=>{"use strict";var o9=Ki(),{LEVEL:c2,MESSAGE:sC}=si();p2.exports=o9((t,{stack:e,cause:i})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[c2]:t[c2]||t.level,message:t.message,[sC]:t[sC]||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[sC]=n.message,e&&(t.stack=n.stack),i&&(t.cause=n.cause),t})});var lC=w((Hle,Ap)=>{"use strict";var{configs:l9,LEVEL:h2,MESSAGE:oC}=si(),Cp=class t{constructor(e={levels:l9.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[h2]]}${e.message}`,e[oC]&&(e[oC]=`${this.paddings[e[h2]]}${e[oC]}`),e}};Ap.exports=t=>new Cp(t);Ap.exports.Padder=Ap.exports.Format=Cp});var g2=w((Ile,uC)=>{"use strict";var{Colorizer:u9}=vp(),{Padder:c9}=lC(),{configs:p9,MESSAGE:d9}=si(),bp=class{constructor(e={}){e.levels||(e.levels=p9.cli.levels),this.colorizer=new u9(e),this.padder=new c9(e),this.options=e}transform(e,i){return this.colorizer.transform(this.padder.transform(e,i),i),e[d9]=`${e.level}:${e.message}`,e}};uC.exports=t=>new bp(t);uC.exports.Format=bp});var f2=w((Rle,cC)=>{"use strict";var h9=Ki();function m2(t){if(t.every(g9))return e=>{let i=e;for(let n=0;n{let e=h9(m2(t)),i=e();return i.Format=e.Format,i};cC.exports.cascade=m2});var ll=w((gC,C2)=>{"use strict";var{hasOwnProperty:ol}=Object.prototype,Ba=hC();Ba.configure=hC;Ba.stringify=Ba;Ba.default=Ba;gC.stringify=Ba;gC.configure=hC;C2.exports=Ba;var m9=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Lt(t){return t.length<5e3&&!m9.test(t)?`"${t}"`:JSON.stringify(t)}function pC(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 f9=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function dC(t){return f9.call(t)!==void 0&&t.length!==0}function w2(t,e,i){t.length= 1`)}return i===void 0?1/0:i}function Wa(t){return t===1?"1 item":`${t} items`}function A9(t){let e=new Set;for(let i of t)(typeof i=="string"||typeof i=="number")&&e.add(String(i));return e}function b9(t){if(ol.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 hC(t){t={...t};let e=b9(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let i=w9(t),n=C9(t,"bigint"),a=v9(t),r=typeof a=="function"?a:void 0,s=v2(t,"maximumDepth"),o=v2(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 Lt(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}"... ${Ua(De)} not stringified"`}return v!==""&&(b+=` +${y}`);let Z=Math.min(A.length,o),ie=0;for(;ieo){let De=A.length-o-1;b+=`${O}"... ${Wa(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}"${Ua(Z)} not stringified"`,k=O}return v!==""&&k.length>1&&(b=` +${y}`,F=" ");let Q=Math.min(X,o);a&&!dC(A)&&(N=pC(N,r)),m.push(A);for(let Z=0;Zo){let Z=X-o;b+=`${k}"...":${F}"${Wa(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 Q=g.length-o-1;b+=`${O}"... ${Ua(Q)} not stringified"`}return v!==""&&(b+=` +${y}`);let X=Math.min(g.length,o),F=0;for(;Fo){let Q=g.length-o-1;b+=`${O}"... ${Wa(Q)} not stringified"`}return v!==""&&(b+=` ${A}`),m.pop(),`[${b}]`}m.push(g);let $="";v!==""&&(y+=v,O=`, -${y}`,$=" ");let N="";for(let X of f){let F=u(X,g[X],m,f,v,y);F!==void 0&&(b+=`${N}${Nt(X)}:${$}${F}`,N=O)}return v!==""&&N.length>1&&(b=` +${y}`,$=" ");let N="";for(let X of f){let F=u(X,g[X],m,f,v,y);F!==void 0&&(b+=`${N}${Lt(X)}:${$}${F}`,N=O)}return v!==""&&N.length>1&&(b=` ${y}${b} -${A}`),m.pop(),`{${b}}`}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 c(h,g,m,f,v){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 c(h,g,m,f,v);if(g===null)return"null"}if(m.indexOf(g)!==-1)return i;let y=v;if(Array.isArray(g)){if(g.length===0)return"[]";if(so){let se=g.length-o-1;F+=`${k}"... ${Ua(se)} not stringified"`}return F+=` +${v}`,Q=Math.min(g.length,o),Z=0;for(;Zo){let se=g.length-o-1;F+=`${k}"... ${Wa(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}"...": "${Ua(F)} not stringified"`,N=O}return N!==""&&($=` +${v}`,$="",N="",X=Math.min(b,o);dC(g)&&($+=w2(g,O,o),A=A.slice(g.length),X-=g.length,N=O),a&&(A=pC(A,r)),m.push(g);for(let F=0;Fo){let F=b-o;$+=`${N}"...": "${Wa(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+=`,"... ${Ua(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}"...":"${Ua($)} 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,[],i9(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var uC=w((Yoe,c2)=>{"use strict";var t9=Ki(),{MESSAGE:a9}=ri(),r9=rl();function s9(t,e){return typeof e=="bigint"?e.toString():e}c2.exports=t9((t,e)=>{let i=r9.configure(e);return t[a9]=i(t,e.replacer||s9,e.space),t})});var d2=w((Xoe,p2)=>{"use strict";var o9=Ki();p2.exports=o9((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var g2=w((ele,h2)=>{"use strict";var l9=Ki(),{MESSAGE:u9}=ri(),c9=rl();h2.exports=l9(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[u9]=c9(e),t})});var f2=w((ile,m2)=>{"use strict";var p9=Ki();function d9(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 h9(t,e,i){return t[i]=e.reduce((n,a)=>(n[a]=t[a],delete t[a],n),{}),t}m2.exports=p9((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?d9(t,n,i):e.fillWith?h9(t,e.fillWith,i):t})});var v2=w((sl,w2)=>{"use strict";var g9=Ki(),m9=qw();w2.exports=g9(t=>{let e=+new Date;return sl.diff=e-(sl.prevTime||e),sl.prevTime=e,t.ms=`+${m9(sl.diff)}`,t})});var b2=w((nle,A2)=>{"use strict";var f9=require("util").inspect,w9=Ki(),{LEVEL:v9,MESSAGE:C2,SPLAT:C9}=ri();A2.exports=w9((t,e={})=>{let i=Object.assign({},t);return delete i[v9],delete i[C2],delete i[C9],t[C2]=f9(i,!1,e.depth||null,e.colorize),t})});var y2=w((tle,fp)=>{"use strict";var{MESSAGE:A9}=ri(),mp=class{constructor(e){this.template=e}transform(e){return e[A9]=this.template(e),e}};fp.exports=t=>new mp(t);fp.exports.Printf=fp.exports.Format=mp});var S2=w((ale,j2)=>{"use strict";var b9=Ki(),{MESSAGE:P2}=ri(),y9=rl();j2.exports=b9(t=>{let e=y9(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),i=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[P2]=`${t.level}:${i} ${t.message} ${e}`:t[P2]=`${t.level}:${i} ${t.message}`,t})});var T2=w((rle,x2)=>{"use strict";var P9=require("util"),{SPLAT:O2}=ri(),j9=/%[scdjifoO%]/g,S9=/%%/g,cC=class{constructor(e){this.options=e}_splat(e,i){let n=e.message,a=e[O2]||e.splat||[],r=n.match(S9),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 cC(t)});var E2=w((wp,M2)=>{(function(t,e){typeof wp=="object"&&typeof M2<"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)),"@@@"}),xi={},vi={};Me=y(Me).replace(e,function(vn){var Ge=k[vn],Xa=Ge[0],CI=Ge[1],uy=Ge[3];if(xi[Xa])throw new Error("Invalid format. "+Xa+" specified twice in format");return xi[Xa]=!0,uy&&(vi[uy]=!0),ei.push(Ge),"("+CI+")"}),Object.keys(vi).forEach(function(vn){if(!xi[vn])throw new Error("Invalid format. "+vn+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Re.shift()});var tn=S.match(new RegExp(Me,"i"));if(!tn)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 q2=w((sle,k2)=>{"use strict";var O9=E2(),x9=Ki();k2.exports=x9((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():O9.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var H2=w((ole,_2)=>{"use strict";var pC=Vv(),T9=Ki(),{MESSAGE:dC}=ri();_2.exports=T9((t,e)=>(e.level!==!1&&(t.level=pC.strip(t.level)),e.message!==!1&&(t.message=pC.strip(String(t.message))),e.raw!==!1&&t[dC]&&(t[dC]=pC.strip(String(t[dC]))),t))});var gC=w(hC=>{"use strict";var M9=hC.format=Ki();hC.levels=Q_();function Si(t,e){Object.defineProperty(M9,t,{get(){return e()},configurable:!0})}Si("align",function(){return X_()});Si("errors",function(){return n2()});Si("cli",function(){return a2()});Si("combine",function(){return s2()});Si("colorize",function(){return pp()});Si("json",function(){return uC()});Si("label",function(){return d2()});Si("logstash",function(){return g2()});Si("metadata",function(){return f2()});Si("ms",function(){return v2()});Si("padLevels",function(){return nC()});Si("prettyPrint",function(){return b2()});Si("printf",function(){return y2()});Si("simple",function(){return S2()});Si("splat",function(){return T2()});Si("timestamp",function(){return q2()});Si("uncolorize",function(){return H2()})});var mC=w(vp=>{"use strict";var{format:R2}=require("util");vp.warn={deprecated(t){return()=>{throw new Error(R2("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([R2("{ %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 I2=w((cle,E9)=>{E9.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 D2=w((ple,z2)=>{z2.exports=require("util").deprecate});var fC=w((dle,G2)=>{G2.exports=require("stream")});var vC=w((hle,N2)=>{"use strict";function k9(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(wC,this,t)):process.nextTick(wC,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($2,i,r)):process.nextTick($2,i,r):e?(process.nextTick(Cp,i),e(r)):process.nextTick(Cp,i)}),this)}function $2(t,e){wC(t,e),Cp(t)}function Cp(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function q9(){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 wC(t,e){t.emit("error",e)}function _9(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}N2.exports={destroy:k9,undestroy:q9,errorOrDestroy:_9}});var Ut=w((gle,W2)=>{"use strict";var L2={};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,L2[t]=a}function U2(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 H9(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function R9(t,e,i){return(i===void 0||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function I9(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"&&H9(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let a;if(R9(t," argument"))a=`The ${t} ${n} ${U2(e,"type")}`;else{let r=I9(t,".")?"property":"argument";a=`The "${t}" ${r} ${n} ${U2(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");W2.exports.codes=L2});var CC=w((mle,B2)=>{"use strict";var z9=Ut().codes.ERR_INVALID_OPT_VALUE;function D9(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function G9(t,e,i,n){var a=D9(e,n,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=n?i:"highWaterMark";throw new z9(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}B2.exports={getHighWaterMark:G9}});var F2=w((fle,AC)=>{typeof Object.create=="function"?AC.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:AC.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((wle,yC)=>{try{if(bC=require("util"),typeof bC.inherits!="function")throw"";yC.exports=bC.inherits}catch{yC.exports=F2()}var bC});var Y2=w((vle,Q2)=>{"use strict";function V2(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 J2(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;)V9(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:F9,value:function(i,n){return PC(this,J2(J2({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var i0=w((jC,e0)=>{var bp=require("buffer"),Bn=bp.Buffer;function X2(t,e){for(var i in t)e[i]=t[i]}Bn.from&&Bn.alloc&&Bn.allocUnsafe&&Bn.allocUnsafeSlow?e0.exports=bp:(X2(bp,jC),jC.Buffer=Wa);function Wa(t,e,i){return Bn(t,e,i)}Wa.prototype=Object.create(Bn.prototype);X2(Bn,Wa);Wa.from=function(t,e,i){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Bn(t,e,i)};Wa.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};Wa.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Bn(t)};Wa.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return bp.SlowBuffer(t)}});var xC=w(t0=>{"use strict";var OC=i0().Buffer,n0=OC.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 J9(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 Z9(t){var e=J9(t);if(typeof e!="string"&&(OC.isEncoding===n0||!n0(t)))throw new Error("Unknown encoding: "+t);return e||t}t0.StringDecoder=ol;function ol(t){this.encoding=Z9(t);var e;switch(this.encoding){case"utf16le":this.text=i6,this.end=n6,e=4;break;case"utf8":this.fillLast=Y9,e=4;break;case"base64":this.text=t6,this.end=a6,e=3;break;default:this.write=r6,this.end=s6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=OC.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 K9(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 Q9(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 Y9(t){var e=this.lastTotal-this.lastNeed,i=Q9(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 X9(t,e){var i=K9(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 e6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function i6(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 n6(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 t6(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 a6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function r6(t){return t.toString(this.encoding)}function s6(t){return t&&t.length?this.write(t):""}});var yp=w((Ale,s0)=>{"use strict";var a0=Ut().codes.ERR_STREAM_PREMATURE_CLOSE;function o6(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=c6(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function c6(t){var e=p6(t,"string");return typeof e=="symbol"?e:String(e)}function p6(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 d6=yp(),Wt=Symbol("lastResolve"),Ba=Symbol("lastReject"),ll=Symbol("error"),jp=Symbol("ended"),Fa=Symbol("lastPromise"),TC=Symbol("handlePromise"),Va=Symbol("stream");function Bt(t,e){return{value:t,done:e}}function h6(t){var e=t[Wt];if(e!==null){var i=t[Va].read();i!==null&&(t[Fa]=null,t[Wt]=null,t[Ba]=null,e(Bt(i,!1)))}}function g6(t){process.nextTick(h6,t)}function m6(t,e){return function(i,n){t.then(function(){if(e[jp]){i(Bt(void 0,!0));return}e[TC](i,n)},n)}}var f6=Object.getPrototypeOf(function(){}),w6=Object.setPrototypeOf((Pp={get stream(){return this[Va]},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[Va].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[ll]?o(e[ll]):s(Bt(void 0,!0))})});var n=this[Fa],a;if(n)a=new Promise(m6(n,this));else{var r=this[Va].read();if(r!==null)return Promise.resolve(Bt(r,!1));a=new Promise(this[TC])}return this[Fa]=a,a}},Lt(Pp,Symbol.asyncIterator,function(){return this}),Lt(Pp,"return",function(){var e=this;return new Promise(function(i,n){e[Va].destroy(null,function(a){if(a){n(a);return}i(Bt(void 0,!0))})})}),Pp),f6),v6=function(e){var i,n=Object.create(w6,(i={},Lt(i,Va,{value:e,writable:!0}),Lt(i,Wt,{value:null,writable:!0}),Lt(i,Ba,{value:null,writable:!0}),Lt(i,ll,{value:null,writable:!0}),Lt(i,jp,{value:e._readableState.endEmitted,writable:!0}),Lt(i,TC,{value:function(r,s){var o=n[Va].read();o?(n[Fa]=null,n[Wt]=null,n[Ba]=null,r(Bt(o,!1))):(n[Wt]=r,n[Ba]=s)},writable:!0}),i));return n[Fa]=null,d6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=n[Ba];r!==null&&(n[Fa]=null,n[Wt]=null,n[Ba]=null,r(a)),n[ll]=a;return}var s=n[Wt];s!==null&&(n[Fa]=null,n[Wt]=null,n[Ba]=null,s(Bt(void 0,!0))),n[jp]=!0}),e.on("readable",g6.bind(null,n)),n};o0.exports=v6});var d0=w((yle,p0)=>{"use strict";function u0(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 C6(t){return function(){var e=this,i=arguments;return new Promise(function(n,a){var r=t.apply(e,i);function s(l){u0(r,n,a,s,o,"next",l)}function o(l){u0(r,n,a,s,o,"throw",l)}s(void 0)})}}function c0(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 A6(t){for(var e=1;e{"use strict";y0.exports=je;var ts;je.ReadableState=f0;var Ple=require("events").EventEmitter,m0=function(e,i){return e.listeners(i).length},cl=fC(),Sp=require("buffer").Buffer,O6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function x6(t){return Sp.from(t)}function T6(t){return Sp.isBuffer(t)||t instanceof O6}var MC=require("util"),ue;MC&&MC.debuglog?ue=MC.debuglog("stream"):ue=function(){};var M6=Y2(),IC=vC(),E6=CC(),k6=E6.getHighWaterMark,Op=Ut().codes,q6=Op.ERR_INVALID_ARG_TYPE,_6=Op.ERR_STREAM_PUSH_AFTER_EOF,H6=Op.ERR_METHOD_NOT_IMPLEMENTED,R6=Op.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,as,EC,kC;ns()(je,cl);var ul=IC.errorOrDestroy,qC=["error","close","destroy","pause","resume"];function I6(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 f0(t,e,i){ts=ts||Ja(),t=t||{},typeof i!="boolean"&&(i=e instanceof ts),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=k6(this,t,"readableHighWaterMark",i),this.buffer=new M6,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=xC().StringDecoder),this.decoder=new as(t.encoding),this.encoding=t.encoding)}function je(t){if(ts=ts||Ja(),!(this instanceof je))return new je(t);var e=this instanceof ts;this._readableState=new f0(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=IC.destroy;je.prototype._undestroy=IC.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),w0(this,t,e,!1,n)};je.prototype.unshift=function(t){return w0(this,t,null,!0,!1)};function w0(t,e,i,n,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,G6(t,r);else{var s;if(a||(s=z6(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=x6(e)),n)r.endEmitted?ul(t,new R6):_C(t,r,e,!0);else if(r.ended)ul(t,new _6);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!i?(e=r.decoder.write(e),r.objectMode||e.length!==0?_C(t,r,e,!1):RC(t,r)):_C(t,r,e,!1)}else n||(r.reading=!1,RC(t,r))}return!r.ended&&(r.length=h0?t=h0:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function g0(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=D6(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?HC(this):xp(this),null;if(t=g0(t,e),t===0&&e.ended)return e.length===0&&HC(this),null;var n=e.needReadable;ue("need readable",n),(e.length===0||e.length-t0?a=A0(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&&HC(this)),a!==null&&this.emit("data",a),a};function G6(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,v0(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(v0,t))}function v0(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,zC(t)}function RC(t,e){e.readingMore||(e.readingMore=!0,process.nextTick($6,t,e))}function $6(t,e){for(;!e.reading&&!e.ended&&(e.length1&&b0(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),m0(t,"error")===0&&ul(t,f)}I6(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 N6(t){return function(){var i=t._readableState;ue("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&m0(t,"data")&&(i.flowing=!0,zC(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(U6,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(C0,this),i};je.prototype.removeAllListeners=function(t){var e=cl.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(C0,this),e};function C0(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 U6(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,L6(this,t)),t.paused=!1,this};function L6(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(W6,t,e))}function W6(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),zC(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 zC(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 HC(t){var e=t._readableState;ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(B6,e,t))}function B6(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 kC===void 0&&(kC=d0()),kC(je,t,e)});function b0(t,e){for(var i=0,n=t.length;i{"use strict";var F6=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};j0.exports=Fn;var P0=DC(),$C=Ep();ns()(Fn,P0);for(GC=F6($C.prototype),Tp=0;Tp{"use strict";E0.exports=Ye;function O0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){bQ(e,t)}}var rs;Ye.WritableState=dl;var Z6={deprecate:D2()},x0=fC(),qp=require("buffer").Buffer,K6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Q6(t){return qp.from(t)}function Y6(t){return qp.isBuffer(t)||t instanceof K6}var UC=vC(),X6=CC(),eQ=X6.getHighWaterMark,Ft=Ut().codes,iQ=Ft.ERR_INVALID_ARG_TYPE,nQ=Ft.ERR_METHOD_NOT_IMPLEMENTED,tQ=Ft.ERR_MULTIPLE_CALLBACK,aQ=Ft.ERR_STREAM_CANNOT_PIPE,rQ=Ft.ERR_STREAM_DESTROYED,sQ=Ft.ERR_STREAM_NULL_VALUES,oQ=Ft.ERR_STREAM_WRITE_AFTER_END,lQ=Ft.ERR_UNKNOWN_ENCODING,ss=UC.errorOrDestroy;ns()(Ye,x0);function uQ(){}function dl(t,e,i){rs=rs||Ja(),t=t||{},typeof i!="boolean"&&(i=e instanceof rs),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=eQ(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){fQ(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 O0(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:Z6.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||Ja();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)),x0.call(this)}Ye.prototype.pipe=function(){ss(this,new aQ)};function cQ(t,e){var i=new oQ;ss(t,i),process.nextTick(e,i)}function pQ(t,e,i,n){var a;return i===null?a=new sQ:typeof i!="string"&&!e.objectMode&&(a=new iQ("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&&Y6(t);return r&&!qp.isBuffer(t)&&(t=Q6(t)),typeof e=="function"&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),typeof i!="function"&&(i=uQ),n.ending?cQ(this,i):(r||pQ(this,n,t,i))&&(n.pendingcb++,a=hQ(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&&T0(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 lQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function dQ(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 hQ(t,e,i,n,a,r){if(!i){var s=dQ(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 yQ=require("util"),k0=Ep(),{LEVEL:q0}=ri(),hl=_0.exports=function(e={}){k0.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())})};yQ.inherits(hl,k0);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[q0]]){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[q0]])&&(this.handleExceptions||i.exception!==!0))};hl.prototype._nop=function(){}});var BC=w((Tle,R0)=>{"use strict";var PQ=require("util"),{LEVEL:WC}=ri(),H0=LC(),gl=R0.exports=function(e={}){if(H0.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))};PQ.inherits(gl,H0);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[WC]])&&this.transport.log(e[WC],e.message,e,this._nop),n(null)};gl.prototype._writev=function(e,i){for(let n=0;n{"use strict";FC.exports=LC();FC.exports.LegacyTransportStream=BC()});var D0=w((kle,z0)=>{"use strict";var jQ=require("os"),{LEVEL:I0,MESSAGE:ls}=ri(),SQ=os();z0.exports=class extends SQ{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:jQ.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[I0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[ls]}${this.eol}`):this._consoleError(e[ls]),i&&i();return}else if(this.consoleWarnLevels[e[I0]]){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,G0)=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.default=OQ;function OQ(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}G0.exports=_p.default});var N0=w((Rp,$0)=>{"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)}};$0.exports=Rp.default});var W0=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.fallback=U0;Vt.wrap=L0;var xQ=Vt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,TQ=Vt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,MQ=Vt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function U0(t){setTimeout(t,0)}function L0(t){return(e,...i)=>t(()=>e(...i))}var ml;xQ?ml=queueMicrotask:TQ?ml=setImmediate:MQ?ml=process.nextTick:ml=U0;Vt.default=L0(ml)});var Z0=w((Ip,J0)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=RQ;var EQ=N0(),kQ=V0(EQ),qQ=W0(),_Q=V0(qQ),HQ=Za();function V0(t){return t&&t.__esModule?t:{default:t}}function RQ(t){return(0,HQ.isAsync)(t)?function(...e){let i=e.pop(),n=t.apply(this,e);return B0(n,i)}:(0,kQ.default)(function(e,i){var n;try{n=t.apply(this,e)}catch(a){return i(a)}if(n&&typeof n.then=="function")return B0(n,i);i(null,n)})}function B0(t,e){return t.then(i=>{F0(e,null,i)},i=>{F0(e,i&&(i instanceof Error||i.message)?i:new Error(i))})}function F0(t,e,i){try{t(e,i)}catch(n){(0,_Q.default)(a=>{throw a},n)}}J0.exports=Ip.default});var Za=w(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.isAsyncIterable=pt.isAsyncGenerator=pt.isAsync=void 0;var IQ=Z0(),zQ=DQ(IQ);function DQ(t){return t&&t.__esModule?t:{default:t}}function K0(t){return t[Symbol.toStringTag]==="AsyncFunction"}function GQ(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function $Q(t){return typeof t[Symbol.asyncIterator]=="function"}function NQ(t){if(typeof t!="function")throw new Error("expected a function");return K0(t)?(0,zQ.default)(t):t}pt.default=NQ;pt.isAsync=K0;pt.isAsyncGenerator=GQ;pt.isAsyncIterable=$Q});var us=w((zp,Q0)=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.default=UQ;function UQ(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}Q0.exports=zp.default});var X0=w((Dp,Y0)=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var LQ=Hp(),WQ=VC(LQ),BQ=Za(),FQ=VC(BQ),VQ=us(),JQ=VC(VQ);function VC(t){return t&&t.__esModule?t:{default:t}}Dp.default=(0,JQ.default)((t,e,i)=>{var n=(0,WQ.default)(e)?[]:{};t(e,(a,r,s)=>{(0,FQ.default)(a)((o,...l)=>{l.length<2&&([l]=l),n[r]=l,s(o)})},a=>i(a,n))},3);Y0.exports=Dp.default});var JC=w((Gp,eH)=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=ZQ;function ZQ(t){function e(...i){if(t!==null){var n=t;t=null,n.apply(this,i)}}return Object.assign(e,t),e}eH.exports=Gp.default});var nH=w(($p,iH)=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};iH.exports=$p.default});var rH=w((Np,aH)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=t8;var KQ=Hp(),QQ=tH(KQ),YQ=nH(),XQ=tH(YQ);function tH(t){return t&&t.__esModule?t:{default:t}}function e8(t){var e=-1,i=t.length;return function(){return++e{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.default=a8;function a8(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,e)}}sH.exports=Up.default});var Wp=w((Lp,oH)=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var r8={};Lp.default=r8;oH.exports=Lp.default});var uH=w((Bp,lH)=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=u8;var s8=Wp(),o8=l8(s8);function l8(t){return t&&t.__esModule?t:{default:t}}function u8(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===o8.default||a&&o<=0)return a=!0,n(null);u()}}function p(d){r||(s=!1,a=!0,n(d))}u()}lH.exports=Bp.default});var hH=w((Fp,dH)=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var c8=JC(),p8=fl(c8),d8=rH(),h8=fl(d8),g8=ZC(),m8=fl(g8),cH=Za(),f8=uH(),pH=fl(f8),w8=Wp(),v8=fl(w8);function fl(t){return t&&t.__esModule?t:{default:t}}Fp.default=t=>(e,i,n)=>{if(n=(0,p8.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,cH.isAsyncGenerator)(e))return(0,pH.default)(e,t,i,n);if((0,cH.isAsyncIterable)(e))return(0,pH.default)(e[Symbol.asyncIterator](),t,i,n);var a=(0,h8.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===v8.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 C8=hH(),A8=KC(C8),b8=Za(),y8=KC(b8),P8=us(),j8=KC(P8);function KC(t){return t&&t.__esModule?t:{default:t}}function S8(t,e,i,n){return(0,A8.default)(e)(t,(0,y8.default)(i),n)}Vp.default=(0,j8.default)(S8,4);gH.exports=Vp.default});var wH=w((Jp,fH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var O8=QC(),x8=mH(O8),T8=us(),M8=mH(T8);function mH(t){return t&&t.__esModule?t:{default:t}}function E8(t,e,i){return(0,x8.default)(t,1,e,i)}Jp.default=(0,M8.default)(E8,3);fH.exports=Jp.default});var AH=w((Zp,CH)=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=R8;var k8=X0(),q8=vH(k8),_8=wH(),H8=vH(_8);function vH(t){return t&&t.__esModule?t:{default:t}}function R8(t,e){return(0,q8.default)(H8.default,t,e)}CH.exports=Zp.default});var YC=w((Hle,yH)=>{"use strict";yH.exports=dt;var Kp=Ut().codes,I8=Kp.ERR_METHOD_NOT_IMPLEMENTED,z8=Kp.ERR_MULTIPLE_CALLBACK,D8=Kp.ERR_TRANSFORM_ALREADY_TRANSFORMING,G8=Kp.ERR_TRANSFORM_WITH_LENGTH_0,Qp=Ja();ns()(dt,Qp);function $8(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(n===null)return this.emit("error",new z8);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";jH.exports=wl;var PH=YC();ns()(wl,PH);function wl(t){if(!(this instanceof wl))return new wl(t);PH.call(this,t)}wl.prototype._transform=function(t,e,i){i(null,t)}});var EH=w((Ile,MH)=>{"use strict";var XC;function U8(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var TH=Ut().codes,L8=TH.ERR_MISSING_ARGS,W8=TH.ERR_STREAM_DESTROYED;function OH(t){if(t)throw t}function B8(t){return t.setHeader&&typeof t.abort=="function"}function F8(t,e,i,n){n=U8(n);var a=!1;t.on("close",function(){a=!0}),XC===void 0&&(XC=yp()),XC(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,B8(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new W8("pipe"))}}}function xH(t){t()}function V8(t,e){return t.pipe(e)}function J8(t){return!t.length||typeof t[t.length-1]!="function"?OH:t.pop()}function Z8(){for(var t=arguments.length,e=new Array(t),i=0;i0;return F8(s,l,u,function(c){a||(a=c),c&&r.forEach(xH),!l&&(r.forEach(xH),n(a))})});return e.reduce(V8)}MH.exports=Z8});var Ka=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=DC(),wn.Stream=vl||wn,wn.Readable=wn,wn.Writable=Ep(),wn.Duplex=Ja(),wn.Transform=YC(),wn.PassThrough=SH(),wn.finished=yp(),wn.pipeline=EH())});var sA=w((zle,qH)=>{var cs=[],Al=[],eA=function(){};function nA(t){return~cs.indexOf(t)?!1:(cs.push(t),!0)}function tA(t){eA=t}function K8(t){for(var e=[],i=0;i{var X8=sA(),e7=X8(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)});_H.exports=e7});var $H=w((Gle,GH)=>{"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]},IH=Object.create(null);for(let t in Vn)Object.hasOwn(Vn,t)&&(IH[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 IH[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 zH={};for(let t of Object.keys(Vn))zH[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 i7(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=zH[t];if(e)return e;let i=Number.POSITIVE_INFINITY,n;for(let a of Object.keys(Vn)){let r=Vn[a],s=i7(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 n7(){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 u7(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=uA(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 oA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=oA[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(DH.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([...d7(fi[this.model][t].raw(this.color)),this.valpha],t)},ui[t]=function(...i){let n=i[0];return typeof n=="number"&&(n=uA(i,e)),new ui(n,t)}}function c7(t,e){return Number(t.toFixed(e))}function p7(t){return function(e){return c7(e,t)}}function Xe(t,e,i){t=Array.isArray(t)?t:[t];for(let n of t)(lA[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 d7(t){return Array.isArray(t)?t:[t]}function uA(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()};NH.exports=En});var WH=w((Nle,LH)=>{var f7=$H(),w7=UH();LH.exports=function(e,i){var n=i.namespace,a=i.colors!==!1?w7(n+":",f7(n)):n+":";return e[0]=a+" "+e[0],e}});var FH=w((Ule,BH)=>{"use strict";BH.exports=function(e,i){if(!i)return!1;for(var n=i.split(/[\s,]+/),a=0;a{var v7=FH();VH.exports=function(e){return function(n){try{return v7(n,e())}catch{}return!1}}});var KH=w((Wle,ZH)=>{var C7=JH();ZH.exports=C7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var YH=w((Ble,QH)=>{QH.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var eR=w((Fle,XH)=>{var A7=sA(),b7=require("tty").isatty(1),Xp=A7(function t(e,i){return i=i||{},i.colors="colors"in i?i.colors:b7,i.namespace=e,i.prod=!1,i.dev=!0,!t.enabled(e)&&!(i.force||t.force)?t.nope(i):t.yep(i)});Xp.modify(WH());Xp.use(KH());Xp.set(YH());XH.exports=Xp});var bl=w((Vle,cA)=>{process.env.NODE_ENV==="production"?cA.exports=HH():cA.exports=eR()});var nR=w((Jle,iR)=>{"use strict";var pA=require("fs"),{StringDecoder:y7}=require("string_decoder"),{Stream:P7}=Ka();function j7(){}iR.exports=(t,e)=>{let i=Buffer.alloc(65536),n=new y7("utf8"),a=new P7,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")},pA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){pA.close(u,j7);return}return pA.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 sR=w((Kle,rR)=>{"use strict";var Qi=require("fs"),wi=require("path"),tR=AH(),S7=require("zlib"),{MESSAGE:O7}=ri(),{Stream:x7,PassThrough:aR}=Ka(),T7=os(),kn=bl()("winston:file"),M7=require("os"),E7=nR();rR.exports=class extends T7{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 aR,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:M7.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[O7]}${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=Qi.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 x7,a={file:i,start:e.start};return n.destroy=E7(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);Qi.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=Qi.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 aR,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)),tR(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);Qi.exists(c,p=>{if(!p)return l(null);u=`${i}${o}${e}${r}`,Qi.rename(c,wi.join(this.dirname,u),l)})}.bind(this,s));tR(a,()=>{Qi.rename(wi.join(this.dirname,`${i}${e}${r}`),wi.join(this.dirname,`${i}1${e}${r}`),n)})}_compressFile(e,i,n){Qi.access(e,Qi.F_OK,a=>{if(a)return n();var r=S7.createGzip(),s=Qi.createReadStream(e),o=Qi.createWriteStream(i);o.on("finish",()=>{Qi.unlink(e,n)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Qi.existsSync(e)||Qi.mkdirSync(e,{recursive:!0})}}});var lR=w((Yle,oR)=>{"use strict";var k7=require("http"),q7=require("https"),{Stream:_7}=Ka(),H7=os(),{configure:R7}=rl();oR.exports=class extends H7{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 _7;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?q7:k7).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=R7({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var dA=w((Xle,uR)=>{"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";uR.exports=Jn});var pR=w((iue,cR)=>{"use strict";var I7=dA(),{MESSAGE:z7}=ri(),D7=require("os"),G7=os();cR.exports=class extends G7{constructor(e={}){if(super(e),!e.stream||!I7(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:D7.EOL}log(e,i){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),i&&i();return}this._stream.write(`${e[z7]}${this.eol}`),i&&i()}}});var dR=w(yl=>{"use strict";Object.defineProperty(yl,"Console",{configurable:!0,enumerable:!0,get(){return D0()}});Object.defineProperty(yl,"File",{configurable:!0,enumerable:!0,get(){return sR()}});Object.defineProperty(yl,"Http",{configurable:!0,enumerable:!0,get(){return lR()}});Object.defineProperty(yl,"Stream",{configurable:!0,enumerable:!0,get(){return pR()}})});var id=w(Pl=>{"use strict";var ed=gC(),{configs:hA}=ri();Pl.cli=ed.levels(hA.cli);Pl.npm=ed.levels(hA.npm);Pl.syslog=ed.levels(hA.syslog);Pl.addColors=ed.levels});var gR=w((nd,hR)=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var $7=Hp(),N7=Qa($7),U7=Wp(),L7=Qa(U7),W7=QC(),B7=Qa(W7),F7=JC(),V7=Qa(F7),J7=ZC(),Z7=Qa(J7),K7=Za(),Q7=Qa(K7),Y7=us(),X7=Qa(Y7);function Qa(t){return t&&t.__esModule?t:{default:t}}function eY(t,e,i){i=(0,V7.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===L7.default)&&i(null))}for(;n{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=tY;function tY(t){return(e,i,n)=>t(e,n)}mR.exports=td.default});var sd=w((rd,wR)=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var aY=gR(),rY=ad(aY),sY=fR(),oY=ad(sY),lY=Za(),uY=ad(lY),cY=us(),pY=ad(cY);function ad(t){return t&&t.__esModule?t:{default:t}}function dY(t,e,i){return(0,rY.default)(t,(0,oY.default)((0,uY.default)(e)),i)}rd.default=(0,pY.default)(dY,3);wR.exports=rd.default});var CR=w((aue,vR)=>{"use strict";var hY=Object.prototype.toString;vR.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=hY.call(e).slice(8,-1);return n==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=n,i||"anonymous"}});var gA=w((rue,AR)=>{"use strict";var gY=CR();AR.exports=function(e){var i=0,n;function a(){return i||(i=1,n=e.apply(this,arguments),e=null),n}return a.displayName=gY(e),a}});var mA=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 mY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],fY=["topLevel","eval","native","constructor"];mY.forEach(function(t){jl.prototype[t]=null,jl.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});fY.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 yR=w((lue,bR)=>{"use strict";var{Writable:wY}=Ka();bR.exports=class extends wY{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 wA=w((cue,SR)=>{"use strict";var PR=require("os"),vY=sd(),fA=bl()("winston:exception"),CY=gA(),jR=mA(),AY=yR();SR.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:PR.loadavg(),uptime:PR.uptime()}}getTrace(e){return(e?jR.parse(e):jR.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 AY(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(){fA("doExit",a),fA("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()=>{fA(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 xR=w((due,OR)=>{"use strict";var{Writable:bY}=Ka();OR.exports=class extends bY{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 CA=w((gue,ER)=>{"use strict";var TR=require("os"),yY=sd(),vA=bl()("winston:rejection"),PY=gA(),MR=mA(),jY=xR();ER.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:TR.loadavg(),uptime:TR.uptime()}}getTrace(e){return(e?MR.parse(e):MR.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 jY(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(){vA("doExit",a),vA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);yY(n,(o,l)=>{let u=PY(l),c=o.transport||o;function p(d){return()=>{vA(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 qR=w((mue,kR)=>{"use strict";var AA=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)}};kR.exports=AA});var od=w((fue,IR)=>{"use strict";var{Stream:SY,Transform:OY}=Ka(),_R=sd(),{LEVEL:Zn,SPLAT:HR}=ri(),RR=dA(),xY=wA(),TY=CA(),MY=BC(),EY=qR(),{warn:kY}=mC(),qY=id(),_Y=/%[scdjifoO%]/g,ld=class extends OY{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||uC()(),this.defaultMeta=n||null,this.levels=a||this.levels||qY.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new xY(this),this.rejections=new TY(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(_Y))){let s=Object.assign({},this.defaultMeta,a,{[Zn]:e,[HR]: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,[HR]: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();_R(i,(n,a)=>{if(!n||n.finished)return setImmediate(a);n.once("finish",a),n.end()},e)}add(e){let i=!RR(e)||e.log.length>2?new MY({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(!RR(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(){kY.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})}_R(this.transports.filter(o=>!!o.query),s,()=>i(null,n))}stream(e={}){let i=new SY,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 EY(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)}});IR.exports=ld});var bA=w((wue,zR)=>{"use strict";var{LEVEL:HY}=ri(),RY=id(),IY=od(),zY=bl()("winston:create-logger");function DY(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}zR.exports=function(t={}){t.levels=t.levels||RY.npm.levels;class e extends IY{constructor(a){super(a)}}let i=new e(t);return Object.keys(t.levels).forEach(function(n){if(zY('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[HY]=n,r._addDefaultMeta(o),r.write(o),this||i}return a.length===0?(r.log(n,""),r):r.log(n,...a)},e.prototype[DY(n)]=function(){return(this||i).isLevelEnabled(n)}}),i}});var GR=w((Cue,DR)=>{"use strict";var GY=bA();DR.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=GY(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 NR=w(He=>{"use strict";var $R=gC(),{warn:xl}=mC();He.version=I2().version;He.transports=dR();He.config=id();He.addColors=$R.levels;He.format=$R.format;He.createLogger=bA();He.Logger=od();He.ExceptionHandler=wA();He.RejectionHandler=CA();He.Container=GR();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 BR=w((bue,WR)=>{var Tl=require("path"),UR=require("fs"),LR=parseInt("0777",8);WR.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||UR;a===void 0&&(a=LR),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||UR;a===void 0&&(a=LR),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 yA=w((yue,FR)=>{function $Y(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function NY(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function UY(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 Lt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return p(h,g,m);if(g===null)return"null"}if(m.indexOf(g)!==-1)return 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+=`,"... ${Wa(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}"...":"${Wa($)} 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,[],A9(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var mC=w((zle,A2)=>{"use strict";var y9=Ki(),{MESSAGE:P9}=si(),j9=ll();function S9(t,e){return typeof e=="bigint"?e.toString():e}A2.exports=y9((t,e)=>{let i=j9.configure(e);return t[P9]=i(t,e.replacer||S9,e.space),t})});var y2=w((Dle,b2)=>{"use strict";var O9=Ki();b2.exports=O9((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var j2=w((Gle,P2)=>{"use strict";var x9=Ki(),{MESSAGE:T9}=si(),M9=ll();P2.exports=x9(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[T9]=M9(e),t})});var O2=w(($le,S2)=>{"use strict";var E9=Ki();function k9(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 q9(t,e,i){return t[i]=e.reduce((n,a)=>(n[a]=t[a],delete t[a],n),{}),t}S2.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?k9(t,n,i):e.fillWith?q9(t,e.fillWith,i):t})});var T2=w((ul,x2)=>{"use strict";var _9=Ki(),H9=Dw();x2.exports=_9(t=>{let e=+new Date;return ul.diff=e-(ul.prevTime||e),ul.prevTime=e,t.ms=`+${H9(ul.diff)}`,t})});var k2=w((Nle,E2)=>{"use strict";var I9=require("util").inspect,R9=Ki(),{LEVEL:z9,MESSAGE:M2,SPLAT:D9}=si();E2.exports=R9((t,e={})=>{let i=Object.assign({},t);return delete i[z9],delete i[M2],delete i[D9],t[M2]=I9(i,!1,e.depth||null,e.colorize),t})});var q2=w((Ule,Pp)=>{"use strict";var{MESSAGE:G9}=si(),yp=class{constructor(e){this.template=e}transform(e){return e[G9]=this.template(e),e}};Pp.exports=t=>new yp(t);Pp.exports.Printf=Pp.exports.Format=yp});var I2=w((Lle,H2)=>{"use strict";var $9=Ki(),{MESSAGE:_2}=si(),N9=ll();H2.exports=$9(t=>{let e=N9(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),i=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[_2]=`${t.level}:${i} ${t.message} ${e}`:t[_2]=`${t.level}:${i} ${t.message}`,t})});var D2=w((Wle,z2)=>{"use strict";var U9=require("util"),{SPLAT:R2}=si(),L9=/%[scdjifoO%]/g,W9=/%%/g,fC=class{constructor(e){this.options=e}_splat(e,i){let n=e.message,a=e[R2]||e.splat||[],r=n.match(W9),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 fC(t)});var $2=w((jp,G2)=>{(function(t,e){typeof jp=="object"&&typeof G2<"u"?e(jp):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(jp,(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,I){for(var Ae=[],Se=0,R=S.length;Se-1?R:null}};function c(S){for(var I=[],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,I){for(I===void 0&&(I=2),S=String(S);S.length0?"-":"+")+A(Math.floor(Math.abs(I)/60)*100+Math.abs(I)%60,4)},Z:function(S){var I=S.getTimezoneOffset();return(I>0?"-":"+")+A(Math.floor(Math.abs(I)/60),2)+":"+A(Math.abs(I)%60,2)}},O=function(S){return+S-1},$=[null,i],N=[null,s],X=["isPm",s,function(S,I){var Ae=S.toLowerCase();return Ae===I.amPm[0]?0:Ae===I.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var I=(S+"").match(/([+-]|\d\d)/gi);if(I){var Ae=+I[1]*60+parseInt(I[2],10);return I[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 I=new Date,Ae=+(""+I.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,I,Ae){if(I===void 0&&(I=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");I=Q[I]||I;var Se=[];I=I.replace(o,function(ei,Ie){return Se.push(Ie),"@@@"});var R=c(c({},f),Ae);return I=I.replace(e,function(ei){return b[ei](S,R)}),I.replace(/@@@/g,function(){return Se.shift()})};function se(S,I,Ae){if(Ae===void 0&&(Ae={}),typeof I!="string")throw new Error("Invalid format in fecha parse");if(I=Q[I]||I,S.length>1e3)return null;var Se=new Date,R={year:Se.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ei=[],Ie=[],Me=I.replace(o,function(vn,Ge){return Ie.push(y(Ge)),"@@@"}),xi={},Ci={};Me=y(Me).replace(e,function(vn){var Ge=k[vn],ir=Ge[0],DR=Ge[1],Cy=Ge[3];if(xi[ir])throw new Error("Invalid format. "+ir+" specified twice in format");return xi[ir]=!0,Cy&&(Ci[Cy]=!0),ei.push(Ge),"("+DR+")"}),Object.keys(Ci).forEach(function(vn){if(!xi[vn])throw new Error("Invalid format. "+vn+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Ie.shift()});var tn=S.match(new RegExp(Me,"i"));if(!tn)return null;for(var G=c(c({},f),Ae),x=1;x11||R.month<0||R.day>31||R.day<1||R.hour>23||R.hour<0||R.minute>59||R.minute<0||R.second>59||R.second<0)return null;return di}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 U2=w((Ble,N2)=>{"use strict";var B9=$2(),F9=Ki();N2.exports=F9((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 W2=w((Fle,L2)=>{"use strict";var wC=Xv(),V9=Ki(),{MESSAGE:vC}=si();L2.exports=V9((t,e)=>(e.level!==!1&&(t.level=wC.strip(t.level)),e.message!==!1&&(t.message=wC.strip(String(t.message))),e.raw!==!1&&t[vC]&&(t[vC]=wC.strip(String(t[vC]))),t))});var AC=w(CC=>{"use strict";var J9=CC.format=Ki();CC.levels=o2();function Si(t,e){Object.defineProperty(J9,t,{get(){return e()},configurable:!0})}Si("align",function(){return u2()});Si("errors",function(){return d2()});Si("cli",function(){return g2()});Si("combine",function(){return f2()});Si("colorize",function(){return vp()});Si("json",function(){return mC()});Si("label",function(){return y2()});Si("logstash",function(){return j2()});Si("metadata",function(){return O2()});Si("ms",function(){return T2()});Si("padLevels",function(){return lC()});Si("prettyPrint",function(){return k2()});Si("printf",function(){return q2()});Si("simple",function(){return I2()});Si("splat",function(){return D2()});Si("timestamp",function(){return U2()});Si("uncolorize",function(){return W2()})});var bC=w(Sp=>{"use strict";var{format:B2}=require("util");Sp.warn={deprecated(t){return()=>{throw new Error(B2("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([B2("{ %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]=Sp.warn[e](n)})},forProperties(t,e,i){i.forEach(n=>{let a=Sp.warn[e](n);Object.defineProperty(t,n,{get:a,set:a})})}}});var F2=w((Zle,Z9)=>{Z9.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 J2=w((Kle,V2)=>{V2.exports=require("util").deprecate});var yC=w((Qle,Z2)=>{Z2.exports=require("stream")});var jC=w((Yle,Q2)=>{"use strict";function K9(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(PC,this,t)):process.nextTick(PC,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(Op,i):(i._writableState.errorEmitted=!0,process.nextTick(K2,i,r)):process.nextTick(K2,i,r):e?(process.nextTick(Op,i),e(r)):process.nextTick(Op,i)}),this)}function K2(t,e){PC(t,e),Op(t)}function Op(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Q9(){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 PC(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)}Q2.exports={destroy:K9,undestroy:Q9,errorOrDestroy:Y9}});var Wt=w((Xle,e0)=>{"use strict";var X2={};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,X2[t]=a}function Y2(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 X9(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function e6(t,e,i){return(i===void 0||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function i6(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"&&X9(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let a;if(e6(t," argument"))a=`The ${t} ${n} ${Y2(e,"type")}`;else{let r=i6(t,".")?"property":"argument";a=`The "${t}" ${r} ${n} ${Y2(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");e0.exports.codes=X2});var SC=w((eue,i0)=>{"use strict";var n6=Wt().codes.ERR_INVALID_OPT_VALUE;function t6(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function a6(t,e,i,n){var a=t6(e,n,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=n?i:"highWaterMark";throw new n6(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}i0.exports={getHighWaterMark:a6}});var n0=w((iue,OC)=>{typeof Object.create=="function"?OC.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:OC.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 as=w((nue,TC)=>{try{if(xC=require("util"),typeof xC.inherits!="function")throw"";TC.exports=xC.inherits}catch{TC.exports=n0()}var xC});var l0=w((tue,o0)=>{"use strict";function t0(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 a0(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 xp.alloc(0);for(var n=xp.allocUnsafe(i>>>0),a=this.head,r=0;a;)d6(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=xp.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:p6,value:function(i,n){return MC(this,a0(a0({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var p0=w((EC,c0)=>{var Tp=require("buffer"),Bn=Tp.Buffer;function u0(t,e){for(var i in t)e[i]=t[i]}Bn.from&&Bn.alloc&&Bn.allocUnsafe&&Bn.allocUnsafeSlow?c0.exports=Tp:(u0(Tp,EC),EC.Buffer=Fa);function Fa(t,e,i){return Bn(t,e,i)}Fa.prototype=Object.create(Bn.prototype);u0(Bn,Fa);Fa.from=function(t,e,i){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Bn(t,e,i)};Fa.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};Fa.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Bn(t)};Fa.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Tp.SlowBuffer(t)}});var _C=w(h0=>{"use strict";var qC=p0().Buffer,d0=qC.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 h6(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 g6(t){var e=h6(t);if(typeof e!="string"&&(qC.isEncoding===d0||!d0(t)))throw new Error("Unknown encoding: "+t);return e||t}h0.StringDecoder=cl;function cl(t){this.encoding=g6(t);var e;switch(this.encoding){case"utf16le":this.text=A6,this.end=b6,e=4;break;case"utf8":this.fillLast=w6,e=4;break;case"base64":this.text=y6,this.end=P6,e=3;break;default:this.write=j6,this.end=S6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=qC.allocUnsafe(e)}cl.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 m6(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 f6(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 w6(t){var e=this.lastTotal-this.lastNeed,i=f6(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 v6(t,e){var i=m6(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 C6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function A6(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 b6(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 y6(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 P6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function j6(t){return t.toString(this.encoding)}function S6(t){return t&&t.length?this.write(t):""}});var Mp=w((rue,f0)=>{"use strict";var g0=Wt().codes.ERR_STREAM_PREMATURE_CLOSE;function O6(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 Ep;function Bt(t,e,i){return e=M6(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function M6(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 k6=Mp(),Ft=Symbol("lastResolve"),Va=Symbol("lastReject"),pl=Symbol("error"),kp=Symbol("ended"),Ja=Symbol("lastPromise"),HC=Symbol("handlePromise"),Za=Symbol("stream");function Vt(t,e){return{value:t,done:e}}function q6(t){var e=t[Ft];if(e!==null){var i=t[Za].read();i!==null&&(t[Ja]=null,t[Ft]=null,t[Va]=null,e(Vt(i,!1)))}}function _6(t){process.nextTick(q6,t)}function H6(t,e){return function(i,n){t.then(function(){if(e[kp]){i(Vt(void 0,!0));return}e[HC](i,n)},n)}}var I6=Object.getPrototypeOf(function(){}),R6=Object.setPrototypeOf((Ep={get stream(){return this[Za]},next:function(){var e=this,i=this[pl];if(i!==null)return Promise.reject(i);if(this[kp])return Promise.resolve(Vt(void 0,!0));if(this[Za].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[pl]?o(e[pl]):s(Vt(void 0,!0))})});var n=this[Ja],a;if(n)a=new Promise(H6(n,this));else{var r=this[Za].read();if(r!==null)return Promise.resolve(Vt(r,!1));a=new Promise(this[HC])}return this[Ja]=a,a}},Bt(Ep,Symbol.asyncIterator,function(){return this}),Bt(Ep,"return",function(){var e=this;return new Promise(function(i,n){e[Za].destroy(null,function(a){if(a){n(a);return}i(Vt(void 0,!0))})})}),Ep),I6),z6=function(e){var i,n=Object.create(R6,(i={},Bt(i,Za,{value:e,writable:!0}),Bt(i,Ft,{value:null,writable:!0}),Bt(i,Va,{value:null,writable:!0}),Bt(i,pl,{value:null,writable:!0}),Bt(i,kp,{value:e._readableState.endEmitted,writable:!0}),Bt(i,HC,{value:function(r,s){var o=n[Za].read();o?(n[Ja]=null,n[Ft]=null,n[Va]=null,r(Vt(o,!1))):(n[Ft]=r,n[Va]=s)},writable:!0}),i));return n[Ja]=null,k6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=n[Va];r!==null&&(n[Ja]=null,n[Ft]=null,n[Va]=null,r(a)),n[pl]=a;return}var s=n[Ft];s!==null&&(n[Ja]=null,n[Ft]=null,n[Va]=null,s(Vt(void 0,!0))),n[kp]=!0}),e.on("readable",_6.bind(null,n)),n};w0.exports=z6});var y0=w((oue,b0)=>{"use strict";function C0(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 D6(t){return function(){var e=this,i=arguments;return new Promise(function(n,a){var r=t.apply(e,i);function s(l){C0(r,n,a,s,o,"next",l)}function o(l){C0(r,n,a,s,o,"throw",l)}s(void 0)})}}function A0(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 G6(t){for(var e=1;e{"use strict";q0.exports=je;var rs;je.ReadableState=O0;var lue=require("events").EventEmitter,S0=function(e,i){return e.listeners(i).length},hl=yC(),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 IC=require("util"),ue;IC&&IC.debuglog?ue=IC.debuglog("stream"):ue=function(){};var J6=l0(),UC=jC(),Z6=SC(),K6=Z6.getHighWaterMark,_p=Wt().codes,Q6=_p.ERR_INVALID_ARG_TYPE,Y6=_p.ERR_STREAM_PUSH_AFTER_EOF,X6=_p.ERR_METHOD_NOT_IMPLEMENTED,eQ=_p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ss,RC,zC;as()(je,hl);var dl=UC.errorOrDestroy,DC=["error","close","destroy","pause","resume"];function iQ(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 O0(t,e,i){rs=rs||Ka(),t=t||{},typeof i!="boolean"&&(i=e instanceof rs),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=K6(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&&(ss||(ss=_C().StringDecoder),this.decoder=new ss(t.encoding),this.encoding=t.encoding)}function je(t){if(rs=rs||Ka(),!(this instanceof je))return new je(t);var e=this instanceof rs;this._readableState=new O0(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),hl.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=UC.destroy;je.prototype._undestroy=UC.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=qp.from(t,e),e=""),n=!0),x0(this,t,e,!1,n)};je.prototype.unshift=function(t){return x0(this,t,null,!0,!1)};function x0(t,e,i,n,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,aQ(t,r);else{var s;if(a||(s=nQ(r,e)),s)dl(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==qp.prototype&&(e=F6(e)),n)r.endEmitted?dl(t,new eQ):GC(t,r,e,!0);else if(r.ended)dl(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?GC(t,r,e,!1):NC(t,r)):GC(t,r,e,!1)}else n||(r.reading=!1,NC(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 j0(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=tQ(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):Hp(this),null;if(t=j0(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=E0(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 aQ(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?Hp(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,T0(t)))}}function Hp(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(T0,t))}function T0(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,LC(t)}function NC(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(rQ,t,e))}function rQ(t,e){for(;!e.reading&&!e.ended&&(e.length1&&k0(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),S0(t,"error")===0&&dl(t,f)}iQ(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 sQ(t){return function(){var i=t._readableState;ue("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&S0(t,"data")&&(i.flowing=!0,LC(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?Hp(this):n.reading||process.nextTick(oQ,this)),i};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(t,e){var i=hl.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(M0,this),i};je.prototype.removeAllListeners=function(t){var e=hl.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 oQ(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,lQ(this,t)),t.paused=!1,this};function lQ(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(uQ,t,e))}function uQ(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),LC(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 LC(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(cQ,e,t))}function cQ(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 zC===void 0&&(zC=y0()),zC(je,t,e)});function k0(t,e){for(var i=0,n=t.length;i{"use strict";var pQ=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};H0.exports=Fn;var _0=WC(),FC=zp();as()(Fn,_0);for(BC=pQ(FC.prototype),Ip=0;Ip{"use strict";$0.exports=Ye;function R0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){$Q(e,t)}}var os;Ye.WritableState=ml;var gQ={deprecate:J2()},z0=yC(),Gp=require("buffer").Buffer,mQ=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function fQ(t){return Gp.from(t)}function wQ(t){return Gp.isBuffer(t)||t instanceof mQ}var JC=jC(),vQ=SC(),CQ=vQ.getHighWaterMark,Jt=Wt().codes,AQ=Jt.ERR_INVALID_ARG_TYPE,bQ=Jt.ERR_METHOD_NOT_IMPLEMENTED,yQ=Jt.ERR_MULTIPLE_CALLBACK,PQ=Jt.ERR_STREAM_CANNOT_PIPE,jQ=Jt.ERR_STREAM_DESTROYED,SQ=Jt.ERR_STREAM_NULL_VALUES,OQ=Jt.ERR_STREAM_WRITE_AFTER_END,xQ=Jt.ERR_UNKNOWN_ENCODING,ls=JC.errorOrDestroy;as()(Ye,z0);function TQ(){}function ml(t,e,i){os=os||Ka(),t=t||{},typeof i!="boolean"&&(i=e instanceof os),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=CQ(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){IQ(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 R0(this)}ml.prototype.getBuffer=function(){for(var e=this.bufferedRequest,i=[];e;)i.push(e),e=e.next;return i};(function(){try{Object.defineProperty(ml.prototype,"buffer",{get:gQ.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Dp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Dp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return Dp.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof ml}})):Dp=function(e){return e instanceof this};function Ye(t){os=os||Ka();var e=this instanceof os;if(!e&&!Dp.call(Ye,this))return new Ye(t);this._writableState=new ml(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)),z0.call(this)}Ye.prototype.pipe=function(){ls(this,new PQ)};function MQ(t,e){var i=new OQ;ls(t,i),process.nextTick(e,i)}function EQ(t,e,i,n){var a;return i===null?a=new SQ:typeof i!="string"&&!e.objectMode&&(a=new AQ("chunk",["string","Buffer"],i)),a?(ls(t,a),process.nextTick(n,a),!1):!0}Ye.prototype.write=function(t,e,i){var n=this._writableState,a=!1,r=!n.objectMode&&wQ(t);return r&&!Gp.isBuffer(t)&&(t=fQ(t)),typeof e=="function"&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),typeof i!="function"&&(i=TQ),n.ending?MQ(this,i):(r||EQ(this,n,t,i))&&(n.pendingcb++,a=qQ(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&&D0(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 xQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function kQ(t,e,i){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Gp.from(e,i)),e}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qQ(t,e,i,n,a,r){if(!i){var s=kQ(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 NQ=require("util"),N0=zp(),{LEVEL:U0}=si(),fl=L0.exports=function(e={}){N0.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())})};NQ.inherits(fl,N0);fl.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[U0]]){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)};fl.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[U0]])&&(this.handleExceptions||i.exception!==!0))};fl.prototype._nop=function(){}});var QC=w((hue,B0)=>{"use strict";var UQ=require("util"),{LEVEL:KC}=si(),W0=ZC(),wl=B0.exports=function(e={}){if(W0.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))};UQ.inherits(wl,W0);wl.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[KC]])&&this.transport.log(e[KC],e.message,e,this._nop),n(null)};wl.prototype._writev=function(e,i){for(let n=0;n{"use strict";YC.exports=ZC();YC.exports.LegacyTransportStream=QC()});var J0=w((fue,V0)=>{"use strict";var LQ=require("os"),{LEVEL:F0,MESSAGE:cs}=si(),WQ=us();V0.exports=class extends WQ{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:LQ.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[F0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[cs]}${this.eol}`):this._consoleError(e[cs]),i&&i();return}else if(this.consoleWarnLevels[e[F0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[cs]}${this.eol}`):this._consoleWarn(e[cs]),i&&i();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[cs]}${this.eol}`):this._consoleLog(e[cs]),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 Np=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 Q0=w((Up,K0)=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.default=function(t){return function(...e){var i=e.pop();return t.call(this,e,i)}};K0.exports=Up.default});var eH=w(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.fallback=Y0;Zt.wrap=X0;var FQ=Zt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,VQ=Zt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,JQ=Zt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function Y0(t){setTimeout(t,0)}function X0(t){return(e,...i)=>t(()=>e(...i))}var vl;FQ?vl=queueMicrotask:VQ?vl=setImmediate:JQ?vl=process.nextTick:vl=Y0;Zt.default=X0(vl)});var rH=w((Lp,aH)=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.default=e8;var ZQ=Q0(),KQ=tH(ZQ),QQ=eH(),YQ=tH(QQ),XQ=Qa();function tH(t){return t&&t.__esModule?t:{default:t}}function e8(t){return(0,XQ.isAsync)(t)?function(...e){let i=e.pop(),n=t.apply(this,e);return iH(n,i)}:(0,KQ.default)(function(e,i){var n;try{n=t.apply(this,e)}catch(a){return i(a)}if(n&&typeof n.then=="function")return iH(n,i);i(null,n)})}function iH(t,e){return t.then(i=>{nH(e,null,i)},i=>{nH(e,i&&(i instanceof Error||i.message)?i:new Error(i))})}function nH(t,e,i){try{t(e,i)}catch(n){(0,YQ.default)(a=>{throw a},n)}}aH.exports=Lp.default});var Qa=w(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.isAsyncIterable=ht.isAsyncGenerator=ht.isAsync=void 0;var i8=rH(),n8=t8(i8);function t8(t){return t&&t.__esModule?t:{default:t}}function sH(t){return t[Symbol.toStringTag]==="AsyncFunction"}function a8(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function r8(t){return typeof t[Symbol.asyncIterator]=="function"}function s8(t){if(typeof t!="function")throw new Error("expected a function");return sH(t)?(0,n8.default)(t):t}ht.default=s8;ht.isAsync=sH;ht.isAsyncGenerator=a8;ht.isAsyncIterable=r8});var ps=w((Wp,oH)=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.default=o8;function o8(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}oH.exports=Wp.default});var uH=w((Bp,lH)=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var l8=Np(),u8=XC(l8),c8=Qa(),p8=XC(c8),d8=ps(),h8=XC(d8);function XC(t){return t&&t.__esModule?t:{default:t}}Bp.default=(0,h8.default)((t,e,i)=>{var n=(0,u8.default)(e)?[]:{};t(e,(a,r,s)=>{(0,p8.default)(a)((o,...l)=>{l.length<2&&([l]=l),n[r]=l,s(o)})},a=>i(a,n))},3);lH.exports=Bp.default});var eA=w((Fp,cH)=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.default=g8;function g8(t){function e(...i){if(t!==null){var n=t;t=null,n.apply(this,i)}}return Object.assign(e,t),e}cH.exports=Fp.default});var dH=w((Vp,pH)=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};pH.exports=Vp.default});var mH=w((Jp,gH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.default=y8;var m8=Np(),f8=hH(m8),w8=dH(),v8=hH(w8);function hH(t){return t&&t.__esModule?t:{default:t}}function C8(t){var e=-1,i=t.length;return function(){return++e{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=P8;function P8(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,e)}}fH.exports=Zp.default});var Qp=w((Kp,wH)=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var j8={};Kp.default=j8;wH.exports=Kp.default});var CH=w((Yp,vH)=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.default=T8;var S8=Qp(),O8=x8(S8);function x8(t){return t&&t.__esModule?t:{default:t}}function T8(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===O8.default||a&&o<=0)return a=!0,n(null);u()}}function p(d){r||(s=!1,a=!0,n(d))}u()}vH.exports=Yp.default});var PH=w((Xp,yH)=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var M8=eA(),E8=Cl(M8),k8=mH(),q8=Cl(k8),_8=iA(),H8=Cl(_8),AH=Qa(),I8=CH(),bH=Cl(I8),R8=Qp(),z8=Cl(R8);function Cl(t){return t&&t.__esModule?t:{default:t}}Xp.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,AH.isAsyncGenerator)(e))return(0,bH.default)(e,t,i,n);if((0,AH.isAsyncIterable)(e))return(0,bH.default)(e[Symbol.asyncIterator](),t,i,n);var a=(0,q8.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===z8.default||r&&o<=0)return r=!0,n(null);l||c()}}function c(){for(l=!0;o{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});var D8=PH(),G8=nA(D8),$8=Qa(),N8=nA($8),U8=ps(),L8=nA(U8);function nA(t){return t&&t.__esModule?t:{default:t}}function W8(t,e,i,n){return(0,G8.default)(e)(t,(0,N8.default)(i),n)}ed.default=(0,L8.default)(W8,4);jH.exports=ed.default});var xH=w((id,OH)=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var B8=tA(),F8=SH(B8),V8=ps(),J8=SH(V8);function SH(t){return t&&t.__esModule?t:{default:t}}function Z8(t,e,i){return(0,F8.default)(t,1,e,i)}id.default=(0,J8.default)(Z8,3);OH.exports=id.default});var EH=w((nd,MH)=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.default=e7;var K8=uH(),Q8=TH(K8),Y8=xH(),X8=TH(Y8);function TH(t){return t&&t.__esModule?t:{default:t}}function e7(t,e){return(0,Q8.default)(X8.default,t,e)}MH.exports=nd.default});var aA=w((Cue,qH)=>{"use strict";qH.exports=gt;var td=Wt().codes,i7=td.ERR_METHOD_NOT_IMPLEMENTED,n7=td.ERR_MULTIPLE_CALLBACK,t7=td.ERR_TRANSFORM_ALREADY_TRANSFORMING,a7=td.ERR_TRANSFORM_WITH_LENGTH_0,ad=Ka();as()(gt,ad);function r7(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(n===null)return this.emit("error",new n7);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";HH.exports=Al;var _H=aA();as()(Al,_H);function Al(t){if(!(this instanceof Al))return new Al(t);_H.call(this,t)}Al.prototype._transform=function(t,e,i){i(null,t)}});var $H=w((bue,GH)=>{"use strict";var rA;function o7(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var DH=Wt().codes,l7=DH.ERR_MISSING_ARGS,u7=DH.ERR_STREAM_DESTROYED;function RH(t){if(t)throw t}function c7(t){return t.setHeader&&typeof t.abort=="function"}function p7(t,e,i,n){n=o7(n);var a=!1;t.on("close",function(){a=!0}),rA===void 0&&(rA=Mp()),rA(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,c7(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new u7("pipe"))}}}function zH(t){t()}function d7(t,e){return t.pipe(e)}function h7(t){return!t.length||typeof t[t.length-1]!="function"?RH:t.pop()}function g7(){for(var t=arguments.length,e=new Array(t),i=0;i0;return p7(s,l,u,function(c){a||(a=c),c&&r.forEach(zH),!l&&(r.forEach(zH),n(a))})});return e.reduce(d7)}GH.exports=g7});var Ya=w((wn,yl)=>{var bl=require("stream");process.env.READABLE_STREAM==="disable"&&bl?(yl.exports=bl.Readable,Object.assign(yl.exports,bl),yl.exports.Stream=bl):(wn=yl.exports=WC(),wn.Stream=bl||wn,wn.Readable=wn,wn.Writable=zp(),wn.Duplex=Ka(),wn.Transform=aA(),wn.PassThrough=IH(),wn.finished=Mp(),wn.pipeline=$H())});var dA=w((yue,UH)=>{var ds=[],Pl=[],sA=function(){};function lA(t){return~ds.indexOf(t)?!1:(ds.push(t),!0)}function uA(t){sA=t}function m7(t){for(var e=[],i=0;i{var v7=dA(),C7=v7(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)});LH.exports=C7});var KH=w((jue,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]},FH=Object.create(null);for(let t in Vn)Object.hasOwn(Vn,t)&&(FH[Vn[t]]=t);var pi={to:{},get:{}};pi.get=function(t){let e=t.slice(0,3).toLowerCase(),i,n;switch(e){case"hsl":{i=pi.get.hsl(t),n="hsl";break}case"hwb":{i=pi.get.hwb(t),n="hwb";break}default:{i=pi.get.rgb(t),n="rgb";break}}return i?{model:n,value:i}:null};pi.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]=Kt(s[l],0,255);return s[3]=Kt(s[3],0,1),s};pi.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=Kt(Number.parseFloat(i[2]),0,100),s=Kt(Number.parseFloat(i[3]),0,100),o=Kt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};pi.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=Kt(Number.parseFloat(i[2]),0,100),s=Kt(Number.parseFloat(i[3]),0,100),o=Kt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};pi.to.hex=function(...t){return"#"+rd(t[0])+rd(t[1])+rd(t[2])+(t[3]<1?rd(Math.round(t[3]*255)):"")};pi.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]+")"};pi.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]+")"};pi.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]+")"};pi.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};pi.to.keyword=function(...t){return FH[t.slice(0,3)]};function Kt(t,e,i){return Math.min(Math.max(e,t),i)}function rd(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var VH={};for(let t of Object.keys(Vn))VH[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"]}},mt=(6/29)**3;function hs(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function gs(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=gs(t[0]/255),i=gs(t[1]/255),n=gs(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 A7(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=VH[t];if(e)return e;let i=Number.POSITIVE_INFINITY,n;for(let a of Object.keys(Vn)){let r=Vn[a],s=A7(t,r);smt?i**(1/3):7.787*i+16/116,n=n>mt?n**(1/3):7.787*n+16/116,a=a>mt?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=hs(a),r=hs(r),s=hs(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>mt?e**(1/3):7.787*e+16/116,i=i>mt?i**(1/3):7.787*i+16/116,n=n>mt?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=hs(4.0767416621*a-3.3077115913*r+.2309699292*s),l=hs(-1.2684380046*a+2.6097574011*r-.3413193965*s),u=hs(-.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>mt?o:(r-16/116)/7.787,a=l>mt?l:(a-16/116)/7.787,s=u>mt?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 b7(){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 T7(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=wi[this.model].channels;let a=Array.prototype.slice.call(t,0,n);this.color=mA(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 hA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=hA[r];let{labels:s}=wi[this.model],o=[];for(i=0;i(t%360+360)%360),saturationl:Xe("hsl",1,ui(100)),lightness:Xe("hsl",2,ui(100)),saturationv:Xe("hsv",1,ui(100)),value:Xe("hsv",2,ui(100)),chroma:Xe("hcg",1,ui(100)),gray:Xe("hcg",2,ui(100)),white:Xe("hwb",1,ui(100)),wblack:Xe("hwb",2,ui(100)),cyan:Xe("cmyk",0,ui(100)),magenta:Xe("cmyk",1,ui(100)),yellow:Xe("cmyk",2,ui(100)),black:Xe("cmyk",3,ui(100)),x:Xe("xyz",0,ui(95.047)),y:Xe("xyz",1,ui(100)),z:Xe("xyz",2,ui(108.833)),l:Xe("lab",0,ui(100)),a:Xe("lab",1),b:Xe("lab",2),keyword(t){return t!==void 0?new ci(t):wi[this.model].keyword(this.color)},hex(t){return t!==void 0?new ci(t):pi.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new ci(t);let e=this.rgb().round().color,i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),pi.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 ci.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 ci.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(wi)){if(JH.includes(t))continue;let{channels:e}=wi[t];ci.prototype[t]=function(...i){return this.model===t?new ci(this):i.length>0?new ci(i,t):new ci([...k7(wi[this.model][t].raw(this.color)),this.valpha],t)},ci[t]=function(...i){let n=i[0];return typeof n=="number"&&(n=mA(i,e)),new ci(n,t)}}function M7(t,e){return Number(t.toFixed(e))}function E7(t){return function(e){return M7(e,t)}}function Xe(t,e,i){t=Array.isArray(t)?t:[t];for(let n of t)(gA[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 ui(t){return function(e){return Math.max(0,Math.min(t,e))}}function k7(t){return Array.isArray(t)?t:[t]}function mA(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()};QH.exports=En});var eI=w((Oue,XH)=>{var I7=KH(),R7=YH();XH.exports=function(e,i){var n=i.namespace,a=i.colors!==!1?R7(n+":",I7(n)):n+":";return e[0]=a+" "+e[0],e}});var nI=w((xue,iI)=>{"use strict";iI.exports=function(e,i){if(!i)return!1;for(var n=i.split(/[\s,]+/),a=0;a{var z7=nI();tI.exports=function(e){return function(n){try{return z7(n,e())}catch{}return!1}}});var sI=w((Mue,rI)=>{var D7=aI();rI.exports=D7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var lI=w((Eue,oI)=>{oI.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var cI=w((kue,uI)=>{var G7=dA(),$7=require("tty").isatty(1),sd=G7(function t(e,i){return i=i||{},i.colors="colors"in i?i.colors:$7,i.namespace=e,i.prod=!1,i.dev=!0,!t.enabled(e)&&!(i.force||t.force)?t.nope(i):t.yep(i)});sd.modify(eI());sd.use(sI());sd.set(lI());uI.exports=sd});var jl=w((que,fA)=>{process.env.NODE_ENV==="production"?fA.exports=WH():fA.exports=cI()});var dI=w((_ue,pI)=>{"use strict";var wA=require("fs"),{StringDecoder:N7}=require("string_decoder"),{Stream:U7}=Ya();function L7(){}pI.exports=(t,e)=>{let i=Buffer.alloc(65536),n=new N7("utf8"),a=new U7,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")},wA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){wA.close(u,L7);return}return wA.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 fI=w((Iue,mI)=>{"use strict";var Qi=require("fs"),vi=require("path"),hI=EH(),W7=require("zlib"),{MESSAGE:B7}=si(),{Stream:F7,PassThrough:gI}=Ya(),V7=us(),kn=jl()("winston:file"),J7=require("os"),Z7=dI();mI.exports=class extends V7{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 gI,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?vi.basename(e.filename):"winston.log",this.dirname=e.dirname||vi.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=vi.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=vi.join(this.dirname,this.filename),a="",r=[],s=0,o=Qi.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=vi.join(this.dirname,this.filename),n=new F7,a={file:i,start:e.start};return n.destroy=Z7(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=vi.join(this.dirname,i);Qi.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=vi.join(this.dirname,this.filename);kn("create stream start",i,this.options);let n=Qi.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 gI,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=vi.extname(this._basename),n=vi.basename(this._basename,i),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(vi.join(this.dirname,`${n}${s}${i}`),vi.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)),hI(a,e)}_getFile(){let e=vi.extname(this._basename),i=vi.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=vi.join(this.dirname,u);Qi.exists(c,p=>{if(!p)return l(null);u=`${i}${o}${e}${r}`,Qi.rename(c,vi.join(this.dirname,u),l)})}.bind(this,s));hI(a,()=>{Qi.rename(vi.join(this.dirname,`${i}${e}${r}`),vi.join(this.dirname,`${i}1${e}${r}`),n)})}_compressFile(e,i,n){Qi.access(e,Qi.F_OK,a=>{if(a)return n();var r=W7.createGzip(),s=Qi.createReadStream(e),o=Qi.createWriteStream(i);o.on("finish",()=>{Qi.unlink(e,n)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Qi.existsSync(e)||Qi.mkdirSync(e,{recursive:!0})}}});var vI=w((zue,wI)=>{"use strict";var K7=require("http"),Q7=require("https"),{Stream:Y7}=Ya(),X7=us(),{configure:eY}=ll();wI.exports=class extends X7{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?Q7:K7).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=eY({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var vA=w((Due,CI)=>{"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";CI.exports=Jn});var bI=w(($ue,AI)=>{"use strict";var iY=vA(),{MESSAGE:nY}=si(),tY=require("os"),aY=us();AI.exports=class extends aY{constructor(e={}){if(super(e),!e.stream||!iY(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:tY.EOL}log(e,i){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),i&&i();return}this._stream.write(`${e[nY]}${this.eol}`),i&&i()}}});var yI=w(Sl=>{"use strict";Object.defineProperty(Sl,"Console",{configurable:!0,enumerable:!0,get(){return J0()}});Object.defineProperty(Sl,"File",{configurable:!0,enumerable:!0,get(){return fI()}});Object.defineProperty(Sl,"Http",{configurable:!0,enumerable:!0,get(){return vI()}});Object.defineProperty(Sl,"Stream",{configurable:!0,enumerable:!0,get(){return bI()}})});var ld=w(Ol=>{"use strict";var od=AC(),{configs:CA}=si();Ol.cli=od.levels(CA.cli);Ol.npm=od.levels(CA.npm);Ol.syslog=od.levels(CA.syslog);Ol.addColors=od.levels});var jI=w((ud,PI)=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});var rY=Np(),sY=Xa(rY),oY=Qp(),lY=Xa(oY),uY=tA(),cY=Xa(uY),pY=eA(),dY=Xa(pY),hY=iA(),gY=Xa(hY),mY=Qa(),fY=Xa(mY),wY=ps(),vY=Xa(wY);function Xa(t){return t&&t.__esModule?t:{default:t}}function CY(t,e,i){i=(0,dY.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===lY.default)&&i(null))}for(;n{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.default=yY;function yY(t){return(e,i,n)=>t(e,n)}SI.exports=cd.default});var hd=w((dd,xI)=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var PY=jI(),jY=pd(PY),SY=OI(),OY=pd(SY),xY=Qa(),TY=pd(xY),MY=ps(),EY=pd(MY);function pd(t){return t&&t.__esModule?t:{default:t}}function kY(t,e,i){return(0,jY.default)(t,(0,OY.default)((0,TY.default)(e)),i)}dd.default=(0,EY.default)(kY,3);xI.exports=dd.default});var MI=w((Lue,TI)=>{"use strict";var qY=Object.prototype.toString;TI.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=qY.call(e).slice(8,-1);return n==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=n,i||"anonymous"}});var AA=w((Wue,EI)=>{"use strict";var _Y=MI();EI.exports=function(e){var i=0,n;function a(){return i||(i=1,n=e.apply(this,arguments),e=null),n}return a.displayName=_Y(e),a}});var bA=w(Tl=>{Tl.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||Tl.get);var a=i.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,a};Tl.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 xl(t){for(var e in t)this[e]=t[e]}var HY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],IY=["topLevel","eval","native","constructor"];HY.forEach(function(t){xl.prototype[t]=null,xl.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});IY.forEach(function(t){xl.prototype[t]=!1,xl.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Tl._createParsedCallSite=function(t){return new xl(t)}});var qI=w((Vue,kI)=>{"use strict";var{Writable:RY}=Ya();kI.exports=class extends RY{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 PA=w((Zue,II)=>{"use strict";var _I=require("os"),zY=hd(),yA=jl()("winston:exception"),DY=AA(),HI=bA(),GY=qI();II.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:_I.loadavg(),uptime:_I.uptime()}}getTrace(e){return(e?HI.parse(e):HI.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 GY(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(){yA("doExit",a),yA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);zY(n,(o,l)=>{let u=DY(l),c=o.transport||o;function p(d){return()=>{yA(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 zI=w((Que,RI)=>{"use strict";var{Writable:$Y}=Ya();RI.exports=class extends $Y{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 SA=w((Xue,$I)=>{"use strict";var DI=require("os"),NY=hd(),jA=jl()("winston:rejection"),UY=AA(),GI=bA(),LY=zI();$I.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:DI.loadavg(),uptime:DI.uptime()}}getTrace(e){return(e?GI.parse(e):GI.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 LY(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(){jA("doExit",a),jA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);NY(n,(o,l)=>{let u=UY(l),c=o.transport||o;function p(d){return()=>{jA(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 UI=w((ece,NI)=>{"use strict";var OA=class{constructor(e){let i=gd();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)}};NI.exports=OA});var gd=w((ice,FI)=>{"use strict";var{Stream:WY,Transform:BY}=Ya(),LI=hd(),{LEVEL:Zn,SPLAT:WI}=si(),BI=vA(),FY=PA(),VY=SA(),JY=QC(),ZY=UI(),{warn:KY}=bC(),QY=ld(),YY=/%[scdjifoO%]/g,md=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||mC()(),this.defaultMeta=n||null,this.levels=a||this.levels||QY.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new FY(this),this.rejections=new VY(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=Ml(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((i,n)=>{let a=Ml(this.levels,n.level);return a!==null&&a>i?a:i},e)}isLevelEnabled(e){let i=Ml(this.levels,e);if(i===null)return!1;let n=Ml(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=i:this.transports.findIndex(r=>{let s=Ml(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(YY))){let s=Object.assign({},this.defaultMeta,a,{[Zn]:e,[WI]: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,[WI]: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();LI(i,(n,a)=>{if(!n||n.finished)return setImmediate(a);n.once("finish",a),n.end()},e)}add(e){let i=!BI(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(!BI(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(){KY.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})}LI(this.transports.filter(o=>!!o.query),s,()=>i(null,n))}stream(e={}){let i=new WY,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 ZY(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 Ml(t,e){let i=t[e];return!i&&i!==0?null:i}Object.defineProperty(md.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});FI.exports=md});var xA=w((nce,VI)=>{"use strict";var{LEVEL:XY}=si(),eX=ld(),iX=gd(),nX=jl()("winston:create-logger");function tX(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}VI.exports=function(t={}){t.levels=t.levels||eX.npm.levels;class e extends iX{constructor(a){super(a)}}let i=new e(t);return Object.keys(t.levels).forEach(function(n){if(nX('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[XY]=n,r._addDefaultMeta(o),r.write(o),this||i}return a.length===0?(r.log(n,""),r):r.log(n,...a)},e.prototype[tX(n)]=function(){return(this||i).isLevelEnabled(n)}}),i}});var ZI=w((ace,JI)=>{"use strict";var aX=xA();JI.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=aX(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 QI=w(He=>{"use strict";var KI=AC(),{warn:El}=bC();He.version=F2().version;He.transports=yI();He.config=ld();He.addColors=KI.levels;He.format=KI.format;He.createLogger=xA();He.Logger=gd();He.ExceptionHandler=PA();He.RejectionHandler=SA();He.Container=ZI();He.Transport=us();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}}});El.deprecated(He,"setLevels");El.forFunctions(He,"useFormat",["cli"]);El.forProperties(He,"useFormat",["padLevels","stripColors"]);El.forFunctions(He,"deprecated",["addRewriter","addFilter","clone","extend"]);El.forProperties(He,"deprecated",["emitErrs","levelLength"])});var iR=w((sce,eR)=>{var kl=require("path"),YI=require("fs"),XI=parseInt("0777",8);eR.exports=ms.mkdirp=ms.mkdirP=ms;function ms(t,e,i,n){typeof e=="function"?(i=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||YI;a===void 0&&(a=XI),n||(n=null);var s=i||function(){};t=kl.resolve(t),r.mkdir(t,a,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(kl.dirname(t)===t)return s(o);ms(kl.dirname(t),e,function(l,u){l?s(l,u):ms(t,e,s,u)});break;default:r.stat(t,function(l,u){l||!u.isDirectory()?s(o,n):s(null,n)});break}})}ms.sync=function t(e,i,n){(!i||typeof i!="object")&&(i={mode:i});var a=i.mode,r=i.fs||YI;a===void 0&&(a=XI),n||(n=null),e=kl.resolve(e);try{r.mkdirSync(e,a),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(kl.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 TA=w((oce,nR)=>{function rX(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function sX(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function oX(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 LY(t,e,i){this.name=this.constructor.name,this.message=`File contains no section headers. +`+i,Error.captureStackTrace(this,this.constructor)}function lX(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 WY(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)}FR.exports={DuplicateSectionError:$Y,NoSectionError:NY,ParseError:UY,MissingSectionHeaderError:LY,MaximumInterpolationDepthError:WY}});var KR=w((Pue,ZR)=>{var BY=yA(),VR=new RegExp(/%\(([\w-]+)\)s/),PA=50;function FY(t,e,i){return JR(t,e,i,1)}function JR(t,e,i,n){let a=t.get(e,i,!0);if(n>PA)throw new BY.MaximumInterpolationDepthError(e,i,a,PA);let r=VR.exec(a);for(;r!==null;){let s=r[1],o=JR(t,e,s,n+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=VR.exec(a)}return a}ZR.exports={interpolate:FY,MAXIMUM_INTERPOLATION_DEPTH:PA}});var tI=w((Sue,nI)=>{var cd=require("util"),Ml=require("fs"),QR=require("path"),YR=BR(),ud=yA(),VY=KR(),JY=new RegExp(/^\s*\[([^\]]+)]$/),ZY=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),KY=new RegExp(/^\s*[;#]/),XR=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),QY=cd.promisify(Ml.readFile),YY=cd.promisify(Ml.writeFile),jue=cd.promisify(Ml.stat),XY=cd.promisify(YR);function Oi(){this._sections={}}Oi.prototype.sections=function(){return Object.keys(this._sections)};Oi.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new ud.DuplicateSectionError(t);this._sections[t]={}};Oi.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Oi.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new ud.NoSectionError(t)}};Oi.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Oi.prototype.read=function(t){let e=Ml.readFileSync(t).toString("utf8").split(XR);eI.call(this,t,e)};Oi.prototype.readAsync=async function(t){let e=(await QY(t)).toString("utf8").split(XR);eI.call(this,t,e)};Oi.prototype.get=function(t,e,i){if(this._sections.hasOwnProperty(t))return i?this._sections[t][e]:VY.interpolate(this,t,e)};Oi.prototype.getInt=function(t,e,i){if(this._sections.hasOwnProperty(t))return i||(i=10),parseInt(this._sections[t][e],i)};Oi.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Oi.prototype.items=function(t){return this._sections[t]};Oi.prototype.set=function(t,e,i){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=i)};Oi.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Oi.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Oi.prototype.write=function(t,e=!1){if(e){let i=QR.dirname(t);YR.sync(i)}Ml.writeFileSync(t,iI.call(this))};Oi.prototype.writeAsync=async function(t,e=!1){if(e){let i=QR.dirname(t);await XY(i)}await YY(t,iI.call(this))};function eI(t,e){let i=null;e.forEach((n,a)=>{if(!n||n.match(KY))return;let r=JY.exec(n);if(r){let s=r[1];i={},this._sections[s]=i}else if(i)if(r=ZY.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 iI(){let t="",e;for(e in this._sections){if(!this._sections.hasOwnProperty(e))continue;t+="["+e+`] +`+i,Error.captureStackTrace(this,this.constructor)}function uX(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)}nR.exports={DuplicateSectionError:rX,NoSectionError:sX,ParseError:oX,MissingSectionHeaderError:lX,MaximumInterpolationDepthError:uX}});var sR=w((lce,rR)=>{var cX=TA(),tR=new RegExp(/%\(([\w-]+)\)s/),MA=50;function pX(t,e,i){return aR(t,e,i,1)}function aR(t,e,i,n){let a=t.get(e,i,!0);if(n>MA)throw new cX.MaximumInterpolationDepthError(e,i,a,MA);let r=tR.exec(a);for(;r!==null;){let s=r[1],o=aR(t,e,s,n+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=tR.exec(a)}return a}rR.exports={interpolate:pX,MAXIMUM_INTERPOLATION_DEPTH:MA}});var hR=w((cce,dR)=>{var wd=require("util"),ql=require("fs"),oR=require("path"),lR=iR(),fd=TA(),dX=sR(),hX=new RegExp(/^\s*\[([^\]]+)]$/),gX=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),mX=new RegExp(/^\s*[;#]/),uR=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),fX=wd.promisify(ql.readFile),wX=wd.promisify(ql.writeFile),uce=wd.promisify(ql.stat),vX=wd.promisify(lR);function Oi(){this._sections={}}Oi.prototype.sections=function(){return Object.keys(this._sections)};Oi.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new fd.DuplicateSectionError(t);this._sections[t]={}};Oi.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Oi.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new fd.NoSectionError(t)}};Oi.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Oi.prototype.read=function(t){let e=ql.readFileSync(t).toString("utf8").split(uR);cR.call(this,t,e)};Oi.prototype.readAsync=async function(t){let e=(await fX(t)).toString("utf8").split(uR);cR.call(this,t,e)};Oi.prototype.get=function(t,e,i){if(this._sections.hasOwnProperty(t))return i?this._sections[t][e]:dX.interpolate(this,t,e)};Oi.prototype.getInt=function(t,e,i){if(this._sections.hasOwnProperty(t))return i||(i=10),parseInt(this._sections[t][e],i)};Oi.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Oi.prototype.items=function(t){return this._sections[t]};Oi.prototype.set=function(t,e,i){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=i)};Oi.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Oi.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Oi.prototype.write=function(t,e=!1){if(e){let i=oR.dirname(t);lR.sync(i)}ql.writeFileSync(t,pR.call(this))};Oi.prototype.writeAsync=async function(t,e=!1){if(e){let i=oR.dirname(t);await vX(i)}await wX(t,pR.call(this))};function cR(t,e){let i=null;e.forEach((n,a)=>{if(!n||n.match(mX))return;let r=hX.exec(n);if(r){let s=r[1];i={},this._sections[s]=i}else if(i)if(r=gX.exec(n),r){let s=r[1];i[s]=r[2]}else throw new fd.ParseError(t,a,n);else throw new fd.MissingSectionHeaderError(t,a,n)})}function pR(){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}nI.exports=Oi});var oI=w((Oue,sI)=>{"use strict";var eX=Sq(),iX=f_();function rI(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var jA=rI(eX),aI=rI(iX),nX={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=jA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&jA.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&&jA.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}},tX={levels:{none:0,error:1,debug:2,trace:3}},gs={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Ya={formats:{JSON:"json",TEXT:"text"}},SA=class{get logLevelEnum(){return gs}get logFormatEnum(){return Ya}constructor(){this.log_level=gs.level.LNone,this.log_format=Ya.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=NR();this.logger=e.createLogger({levels:tX.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===Ya.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===Ya.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===Ya.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}dR.exports=Oi});var wR=w((pce,fR)=>{"use strict";var CX=Iq(),AX=O_();function mR(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var EA=mR(CX),gR=mR(AX),bX={us_east_1:"mypurecloud.com",eu_west_1:"mypurecloud.ie",ap_southeast_2:"mypurecloud.com.au",ap_northeast_1:"mypurecloud.jp",eu_central_1:"mypurecloud.de",us_west_2:"usw2.pure.cloud",ca_central_1:"cac1.pure.cloud",ap_northeast_2:"apne2.pure.cloud",eu_west_2:"euw2.pure.cloud",ap_south_1:"aps1.pure.cloud",us_east_2:"use2.us-gov-pure.cloud",sa_east_1:"sae1.pure.cloud",me_central_1:"mec1.pure.cloud",ap_northeast_3:"apne3.pure.cloud",eu_central_2:"euc2.pure.cloud",mx_central_1:"mxc1.pure.cloud",ap_southeast_1:"apse1.pure.cloud"},_l=class{constructor(){this.timeout=16e3}setTimeout(e){if(e==null||typeof e!="number")throw new Error("The 'timeout' property must be a number");this.timeout=e}setHttpsAgent(e){if(e&&typeof e!="object")throw new Error("The 'httpsAgent' property must be an object");this.httpsAgent=e}request(e){throw new Error("method must be implemented")}enableHooks(){throw new Error("method must be implemented")}setPreHook(e){if(typeof e!="function"||e.length!==1)throw new Error("preHook must be a function that accepts (config)");this.preHook=e,this.enableHooks()}setPostHook(e){if(typeof e!="function"||e.length!==1)throw new Error("postHook must be a function that accepts (response)");this.postHook=e,this.enableHooks()}},Qt=class{constructor(e,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}},vd=class extends _l{constructor(e,i){super(),e!=null?this.setTimeout(e):this.timeout=16e3,i!=null?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=EA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&EA.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&&EA.default.interceptors.response.eject(this.responseInterceptorId),this.responseInterceptorId=this._axiosInstance.interceptors.response.use(async e=>(e=await this.postHook(e),e),async e=>(console.error("Post-Hook: Response Error",e.message),Promise.reject(e))))}request(e){if(!(e instanceof Qt))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");let 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}},yX={levels:{none:0,error:1,debug:2,trace:3}},fs={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},er={formats:{JSON:"json",TEXT:"text"}},kA=class{get logLevelEnum(){return fs}get logFormatEnum(){return er}constructor(){this.log_level=fs.level.LNone,this.log_format=er.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=QI();this.logger=e.createLogger({levels:yX.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===er.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===er.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===er.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 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 Ya.formats.JSON;default:return Ya.formats.TEXT}}},OA=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 SA,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=tI();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 OA,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=aI.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,aI.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)})}})}},xA=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)}},TA=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)}},MA=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)}},EA=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)}},kA=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)}},qA=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)}},_A=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)}},HA=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)}},RA=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)}},IA=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)}},zA=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)}},DA=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)}},GA=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)}},$A=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)}},NA=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)}},UA=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)}},LA=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)}},WA=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)}},BA=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)}},FA=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)}},VA=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)}},JA=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)}},ZA=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)}},KA=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)}},QA=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)}},YA=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)}},XA=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)}},eb=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)}},ib=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)}},nb=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)}},tb=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)}},ab=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)}},rb=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)}},sb=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)}},ob=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)}},lb=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)}},ub=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)}},cb=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)}},pb=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)}},db=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)}},hb=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)}},gb=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)}},mb=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)}},fb=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)}},wb=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)}},vb=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)}},Cb=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)}},Ab=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)}},bb=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)}},yb=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)}},Pb=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)}},jb=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)}},Sb=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)}},Ob=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)}},xb=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)}},Tb=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)}},Mb=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)}},Eb=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)}},kb=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)}},qb=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)}},_b=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)}},Hb=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)}},Rb=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)}},Ib=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)}},zb=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)}},Db=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)}},Gb=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)}},$b=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)}},Nb=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)}},Ub=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)}},Lb=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)}},Wb=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)}},Bb=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)}},Fb=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)}},Vb=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)}},Jb=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)}},Zb=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)}},Kb=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)}},Qb=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)}},Yb=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)}},Xb=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)}},ey=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)}},iy=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)}},ny=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)}},ty=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)}},ay=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)}},ry=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=xA,this.AgentAssistantsApi=TA,this.AgentCopilotApi=MA,this.AgentUIApi=EA,this.AlertingApi=kA,this.AnalyticsApi=qA,this.ArchitectApi=_A,this.AssistantCopilotVariationsApi=HA,this.AuditApi=RA,this.AuthorizationApi=IA,this.BackgroundAssistantApi=zA,this.BillingApi=DA,this.BusinessRulesApi=GA,this.CarrierServicesApi=$A,this.CaseManagementApi=NA,this.ChatApi=UA,this.CoachingApi=LA,this.ContentManagementApi=WA,this.ConversationsApi=BA,this.DataExtensionsApi=FA,this.DataPrivacyApi=VA,this.DownloadsApi=JA,this.EmailsApi=ZA,this.EmployeeEngagementApi=KA,this.EventsApi=QA,this.ExternalContactsApi=YA,this.FaxApi=XA,this.FlowsApi=eb,this.GamificationApi=ib,this.GeneralDataProtectionRegulationApi=nb,this.GeolocationApi=tb,this.GreetingsApi=ab,this.GroupsApi=rb,this.IdentityProviderApi=sb,this.InfrastructureAsCodeApi=ob,this.IntegrationsApi=lb,this.IntentsApi=ub,this.JourneyApi=cb,this.KnowledgeApi=pb,this.LanguageUnderstandingApi=db,this.LanguagesApi=hb,this.LearningApi=gb,this.LicenseApi=mb,this.LocationsApi=fb,this.LogCaptureApi=wb,this.MessagingApi=vb,this.MobileDevicesApi=Cb,this.NotificationsApi=Ab,this.OAuthApi=bb,this.ObjectsApi=yb,this.OperationalEventsApi=Pb,this.OrganizationApi=jb,this.OrganizationAuthorizationApi=Sb,this.OutboundApi=Ob,this.PresenceApi=xb,this.ProcessAutomationApi=Tb,this.QualityApi=Mb,this.RecordingApi=Eb,this.ResponseManagementApi=kb,this.RoutingApi=qb,this.SCIMApi=_b,this.ScriptsApi=Hb,this.SearchApi=Rb,this.SettingsApi=Ib,this.SocialMediaApi=zb,this.SpeechTextAnalyticsApi=Db,this.StationsApi=Gb,this.SuggestApi=$b,this.TaskManagementApi=Nb,this.TeamsApi=Ub,this.TelephonyApi=Lb,this.TelephonyProvidersEdgeApi=Wb,this.TextbotsApi=Bb,this.TokensApi=Fb,this.UploadsApi=Vb,this.UsageApi=Jb,this.UserRecordingsApi=Zb,this.UsersApi=Kb,this.UsersRulesApi=Qb,this.UtilitiesApi=Yb,this.VoicemailApi=Xb,this.WebChatApi=ey,this.WebDeploymentsApi=iy,this.WebMessagingApi=ny,this.WidgetsApi=ty,this.WorkforceManagementApi=ay,this.PureCloudRegionHosts=nX,this.AbstractHttpClient=El,this.DefaultHttpClient=pd,this.HttpRequestOptions=Zt}},aX=new ry;sI.exports=aX});var Ai={};md(Ai,{BRAND:()=>QI,DIRTY:()=>Qt,EMPTY_PATH:()=>MI,INVALID:()=>K,NEVER:()=>Hz,OK:()=>Ti,ParseStatus:()=>Ci,Schema:()=>ae,ZodAny:()=>wt,ZodArray:()=>et,ZodBigInt:()=>Xt,ZodBoolean:()=>ea,ZodBranded:()=>fs,ZodCatch:()=>pa,ZodDate:()=>ia,ZodDefault:()=>ca,ZodDiscriminatedUnion:()=>_l,ZodEffects:()=>sn,ZodEnum:()=>la,ZodError:()=>Di,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Rl,ZodIntersection:()=>ra,ZodIssueCode:()=>M,ZodLazy:()=>sa,ZodLiteral:()=>oa,ZodMap:()=>sr,ZodNaN:()=>lr,ZodNativeEnum:()=>ua,ZodNever:()=>Cn,ZodNull:()=>ta,ZodNullable:()=>Hn,ZodNumber:()=>Yt,ZodObject:()=>Gi,ZodOptional:()=>an,ZodParsedType:()=>z,ZodPipeline:()=>ws,ZodPromise:()=>vt,ZodReadonly:()=>da,ZodRecord:()=>Hl,ZodSchema:()=>ae,ZodSet:()=>or,ZodString:()=>ft,ZodSymbol:()=>ar,ZodTransformer:()=>sn,ZodTuple:()=>_n,ZodType:()=>ae,ZodUndefined:()=>na,ZodUnion:()=>aa,ZodUnknown:()=>Xn,ZodVoid:()=>rr,addIssueToContext:()=>_,any:()=>sz,array:()=>cz,bigint:()=>iz,boolean:()=>Ay,coerce:()=>_z,custom:()=>wy,date:()=>nz,datetimeRegex:()=>my,defaultErrorMap:()=>Qn,discriminatedUnion:()=>hz,effect:()=>Sz,enum:()=>yz,function:()=>Cz,getErrorMap:()=>ir,getParsedType:()=>qn,instanceof:()=>XI,intersection:()=>gz,isAborted:()=>kl,isAsync:()=>nr,isDirty:()=>ql,isValid:()=>mt,late:()=>YI,lazy:()=>Az,literal:()=>bz,makeIssue:()=>ms,map:()=>wz,nan:()=>ez,nativeEnum:()=>Pz,never:()=>lz,null:()=>rz,nullable:()=>xz,number:()=>Cy,object:()=>Cd,objectUtil:()=>fd,oboolean:()=>qz,onumber:()=>kz,optional:()=>Oz,ostring:()=>Ez,pipeline:()=>Mz,preprocess:()=>Tz,promise:()=>jz,quotelessJson:()=>OI,record:()=>fz,set:()=>vz,setErrorMap:()=>TI,strictObject:()=>pz,string:()=>vy,symbol:()=>tz,transformer:()=>Sz,tuple:()=>mz,undefined:()=>az,union:()=>dz,unknown:()=>oz,util:()=>ce,void:()=>uz});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 fd;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(fd||(fd={}));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"]),OI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Di=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()}};Di.create=t=>new Di(t);var xI=(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=xI;var cy=Qn;function TI(t){cy=t}function ir(){return cy}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}},MI=[];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"}),Qt=t=>({status:"dirty",value:t}),Ti=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 rn=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}},py=(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 Di(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 py(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 py(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 sn({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 an.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 aa.create([this,e],this._def)}and(e){return ra.create(this,e,this._def)}transform(e){return new sn({...ne(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let i=typeof e=="function"?e:()=>e;return new ca({...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 pa({...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 da.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},EI=/^c[^\s-]{8,}$/i,kI=/^[0-9a-z]+$/,qI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,_I=/^[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,HI=/^[a-z0-9_-]{21}$/i,RI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,II=/^[-+]?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)?)??$/,zI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,DI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",wd,GI=/^(?:(?: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])$/,$I=/^(?:(?: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])$/,NI=/^(([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]))$/,UI=/^(([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])$/,LI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,WI=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,hy="((\\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])))",BI=new RegExp(`^${hy}$`);function gy(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 FI(t){return new RegExp(`^${gy(t)}$`)}function my(t){let e=`${hy}T${gy(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 VI(t,e){return!!((e==="v4"||!e)&&GI.test(t)||(e==="v6"||!e)&&NI.test(t))}function JI(t,e){if(!RI.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 ZI(t,e){return!!((e==="v4"||!e)&&$I.test(t)||(e==="v6"||!e)&&UI.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 KI(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 Yt=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"?KI(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 Yt({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ne(t)});var Xt=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 Xt({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ne(t)});var ea=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 Ti(e.data)}};ea.create=t=>new ea({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ne(t)});var ia=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.date,received:r.parsedType}),K}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_date}),K}let 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 ia({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 Ti(e.data)}};ar.create=t=>new ar({typeName:E.ZodSymbol,...ne(t)});var na=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 Ti(e.data)}};na.create=t=>new na({typeName:E.ZodUndefined,...ne(t)});var ta=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 Ti(e.data)}};ta.create=t=>new ta({typeName:E.ZodNull,...ne(t)});var wt=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return Ti(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 Ti(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 Ti(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 rn(i,s,i.path,o)))).then(s=>Ci.mergeArray(n,s));let r=[...i.data].map((s,o)=>a.type._parseSync(new rn(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 Gi){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=an.create(tr(n))}return new Gi({...t._def,shape:()=>e})}else return t instanceof et?new et({...t._def,type:tr(t.element)}):t instanceof an?an.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 Gi=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 rn(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 rn(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 an;)r=r._def.innerType;i[n]=r}return new t({...this._def,shape:()=>i})}keyof(){return fy(ce.objectKeys(this.shape))}};Gi.create=(t,e)=>new Gi({shape:()=>t,unknownKeys:"strip",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});Gi.strictCreate=(t,e)=>new Gi({shape:()=>t,unknownKeys:"strict",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});Gi.lazycreate=(t,e)=>new Gi({shape:t,unknownKeys:"strip",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});var aa=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 Di(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 Di(l));return _(i,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};aa.create=(t,e)=>new aa({options:t,typeName:E.ZodUnion,...ne(e)});var Yn=t=>t instanceof sa?Yn(t.schema):t instanceof sn?Yn(t.innerType()):t instanceof oa?[t.value]:t instanceof la?t.options:t instanceof ua?ce.objectValues(t.enum):t instanceof ca?Yn(t._def.innerType):t instanceof na?[void 0]:t instanceof ta?[null]:t instanceof an?[void 0,...Yn(t.unwrap())]:t instanceof Hn?[null,...Yn(t.unwrap())]:t instanceof fs||t instanceof da?Yn(t.unwrap()):t instanceof pa?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 vd(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=vd(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=vd(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}))}};ra.create=(t,e,i)=>new ra({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 rn(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 rn(n,o,n.path,o)),value:s._parse(new rn(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 rn(n,o,n.path,[u,"key"])),value:r._parse(new rn(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 rn(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 Ti(async function(...l){let u=new Di([]),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 Ti(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new Di([n(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new Di([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)})}},sa=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})}};sa.create=(t,e)=>new sa({getter:t,typeName:E.ZodLazy,...ne(e)});var oa=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}};oa.create=(t,e)=>new oa({value:t,typeName:E.ZodLiteral,...ne(e)});function fy(t,e){return new la({values:t,typeName:E.ZodEnum,...ne(e)})}var la=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 Ti(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})}};la.create=fy;var ua=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 Ti(e.data)}get enum(){return this._def.values}};ua.create=(t,e)=>new ua({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 Ti(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 sn=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"?Qt(l.value):i.value==="dirty"?Qt(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"?Qt(o.value):i.value==="dirty"?Qt(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)}};sn.create=(t,e,i)=>new sn({schema:t,typeName:E.ZodEffects,effect:e,...ne(i)});sn.createWithPreprocess=(t,e,i)=>new sn({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ne(i)});var an=class extends ae{_parse(e){return this._getType(e)===z.undefined?Ti(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};an.create=(t,e)=>new an({innerType:t,typeName:E.ZodOptional,...ne(e)});var Hn=class extends ae{_parse(e){return this._getType(e)===z.null?Ti(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 ca=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}};ca.create=(t,e)=>new ca({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});var pa=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 Di(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Di(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};pa.create=(t,e)=>new pa({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 QI=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(),Qt(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})}},da=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}};da.create=(t,e)=>new da({innerType:t,typeName:E.ZodReadonly,...ne(e)});function dy(t,e){let i=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof i=="string"?{message:i}:i}function wy(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=dy(e,n),l=o.fatal??i??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=dy(e,n),o=s.fatal??i??!0;a.addIssue({code:"custom",...s,fatal:o})}}):wt.create()}var YI={object:Gi.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 XI=(t,e={message:`Input not instance of ${t.name}`})=>wy(i=>i instanceof t,e),vy=ft.create,Cy=Yt.create,ez=lr.create,iz=Xt.create,Ay=ea.create,nz=ia.create,tz=ar.create,az=na.create,rz=ta.create,sz=wt.create,oz=Xn.create,lz=Cn.create,uz=rr.create,cz=et.create,Cd=Gi.create,pz=Gi.strictCreate,dz=aa.create,hz=_l.create,gz=ra.create,mz=_n.create,fz=Hl.create,wz=sr.create,vz=or.create,Cz=Rl.create,Az=sa.create,bz=oa.create,yz=la.create,Pz=ua.create,jz=vt.create,Sz=sn.create,Oz=an.create,xz=Hn.create,Tz=sn.createWithPreprocess,Mz=ws.create,Ez=()=>vy().optional(),kz=()=>Cy().optional(),qz=()=>Ay().optional(),_z={string:(t=>ft.create({...t,coerce:!0})),number:(t=>Yt.create({...t,coerce:!0})),boolean:(t=>ea.create({...t,coerce:!0})),bigint:(t=>Xt.create({...t,coerce:!0})),date:(t=>ia.create({...t,coerce:!0}))};var Hz=K;var by;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 _X=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"}};(by=globalThis).__zod_globalConfig??(by.__zod_globalConfig={});var cr=globalThis.__zod_globalConfig;function Yi(t){return t&&Object.assign(cr,t),cr}var he={};md(he,{BIGINT_FORMAT_RANGES:()=>jy,Class:()=>bd,NUMBER_FORMAT_RANGES:()=>Td,aborted:()=>bt,allowsEval:()=>jd,assert:()=>$z,assertEqual:()=>Iz,assertIs:()=>Dz,assertNever:()=>Gz,assertNotEqual:()=>zz,assignProp:()=>Ct,base64ToUint8Array:()=>qy,base64urlToUint8Array:()=>Qz,cached:()=>dr,captureStackTrace:()=>Dl,cleanEnum:()=>Kz,cleanRegex:()=>bs,clone:()=>Xi,cloneDef:()=>Uz,createTransparentProxy:()=>Jz,defineLazy:()=>Oe,esc:()=>zl,escapeRegex:()=>nt,explicitlyAborted:()=>Md,extend:()=>xy,finalizeIssue:()=>on,floatSafeRemainder:()=>yd,getElementAtPath:()=>Lz,getEnumValues:()=>Cs,getLengthableOrigin:()=>ys,getParsedType:()=>Vz,getSizableOrigin:()=>ky,hexToUint8Array:()=>Xz,isObject:()=>ha,isPlainObject:()=>At,issue:()=>hr,joinValues:()=>Il,jsonStringifyReplacer:()=>pr,merge:()=>Zz,mergeDefs:()=>it,normalizeParams:()=>J,nullish:()=>As,numKeys:()=>Fz,objectClone:()=>Nz,omit:()=>Oy,optionalKeys:()=>xd,parsedType:()=>Ed,partial:()=>My,pick:()=>Sy,prefixIssues:()=>tt,primitiveTypes:()=>Py,promiseAllObject:()=>Wz,propertyKeyTypes:()=>Od,randomString:()=>Bz,required:()=>Ey,safeExtend:()=>Ty,shallowClone:()=>Sd,slugify:()=>Pd,stringifyPrimitive:()=>Gl,uint8ArrayToBase64:()=>_y,uint8ArrayToBase64url:()=>Yz,uint8ArrayToHex:()=>eD,unwrapMessage:()=>vs});function Iz(t){return t}function zz(t){return t}function Dz(t){}function Gz(t){throw new Error("Unexpected value in exhaustive check")}function $z(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 yd(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 Wz(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 ha(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var jd=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(ha(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let i=e.prototype;return!(ha(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function Sd(t){return At(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Fz(t){let e=0;for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e++;return e}var Vz=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}`)}},Od=new Set(["string","number","symbol"]),Py=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xi(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 Jz(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 xd(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Td={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]},jy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Sy(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 Xi(t,r)}function Oy(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 Xi(t,r)}function xy(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 Xi(t,a)}function Ty(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 Xi(t,i)}function Zz(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 Xi(t,i)}function My(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 Xi(e,s)}function Ey(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 Xi(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 ky(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 Ed(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 Kz(t){return Object.entries(t).filter(([e,i])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function qy(t){let e=atob(t),i=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var bd=class{constructor(...e){}};var Hy=(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",Hy),Ps=j("$ZodError",Hy,{Parent:Error});function Ry(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 Iy(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,Yi())));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,Yi())));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,Yi())))}:{success:!0,data:r.value}},ga=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,Yi())))}:{success:!0,data:r.value}},ma=xs(Ps),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=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Os(t)(e,i,a)};var Uy=t=>(e,i,n)=>Os(t)(e,i,n);var Ly=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return xs(t)(e,i,a)};var Wy=t=>async(e,i,n)=>xs(t)(e,i,n);var By=/^[cC][0-9a-z]{6,}$/,Fy=/^[0-9a-z]+$/,Vy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Jy=/^[0-9a-vA-V]{20}$/,Zy=/^[A-Za-z0-9]{27}$/,Ky=/^[a-zA-Z0-9_-]{21}$/,Qy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Yy=/^([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})$/,kd=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 Xy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var nD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function eP(){return new RegExp(nD,"u")}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])$/,nP=/^(([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 tP=/^((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])$/,aP=/^(([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])$/,rP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qd=/^[A-Za-z0-9_-]*$/;var sP=/^https?$/,oP=/^\+[1-9]\d{6,14}$/,lP="(?:(?:\\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])))",uP=new RegExp(`^${lP}$`);function cP(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 pP(t){return new RegExp(`^${cP(t)}$`)}function dP(t){let e=cP({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(`^${lP}T(?:${n})$`)}var hP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var gP=/^-?\d+$/,_d=/^-?\d+(?:\.\d+)?$/,mP=/^(?:true|false)$/i,fP=/^null$/i;var wP=/^[^A-Z]*$/,vP=/^[^a-z]*$/;var di=j("$ZodCheck",(t,e)=>{var i;t._zod??(t._zod={}),t._zod.def=e,(i=t._zod).onattach??(i.onattach=[])}),CP={number:"number",bigint:"bigint",object:"date"},Hd=j("$ZodCheckLessThan",(t,e)=>{di.init(t,e);let i=CP[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=CP[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})}}),AP=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):yd(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})}}),bP=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]=Td[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=gP)}),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 yP=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})}}),PP=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})}}),jP=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=()=>{})}),SP=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})}}),OP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=wP),Ms.init(t,e)}),xP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=vP),Ms.init(t,e)}),TP=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})}}),MP=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})}}),EP=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 kP=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 fs.level.LError;case"debug":return fs.level.LDebug;case"trace":return fs.level.LTrace;default:return fs.level.LNone}}getLogFormat(e){switch(e){case"json":return er.formats.JSON;default:return er.formats.TEXT}}},qA=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 kA,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=hR();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 qA,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 _l))throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");this.httpClient=e}getHttpClient(){return this.httpClient?this.httpClient:(this.httpClient=new vd(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 Qt(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(c=>{this.config.logger.log("trace",c.status,"POST",`${a}/oauth/token`,o,c.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",c.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(c.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+c.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(c=>{c.response&&this.config.logger.log("error",c.response.status,"POST",`${a}/oauth/token`,o,c.response.headers,{grant_type:"client_credentials"},c.response.data),s(c)})})}loginSaml2BearerGrant(e,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=gR.default.stringify({grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a}),c=new Qt(`${r}/oauth/token`,"POST",l,null,u,this.timeout);let p=this.getHttpClient();var d={grant_type:"authorization_code",code: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 Qt(`${n}/oauth/token`,"POST",a,null,gR.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 Qt(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)})}})}},_A=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)}},HA=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)}},IA=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)}},RA=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)}},zA=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)}},DA=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)}},GA=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)}},NA=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)}},UA=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)}},LA=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)}},WA=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)}},BA=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)}},FA=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)}},VA=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)}},JA=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)}},ZA=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)}},KA=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)}},QA=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)}},YA=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)}},XA=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)}},eb=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)}},ib=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)}},nb=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)}},tb=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)}},ab=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)}},rb=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)}},sb=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)}},ob=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)}},lb=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)}},ub=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)}},cb=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)}},pb=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)}},db=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)}},hb=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)}},gb=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)}},mb=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)}},fb=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)}},wb=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)}},vb=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)}},Ab=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)}},bb=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)}},yb=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)}},Pb=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)}},jb=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)}},Sb=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)}},Ob=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)}},xb=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)}},Tb=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)}},Mb=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)}},Eb=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)}},kb=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)}},qb=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)}},_b=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)}},Hb=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)}},Ib=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)}},Rb=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)}},zb=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)}},Db=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)}},Gb=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)}},Nb=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)}},Ub=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)}},Lb=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)}},Wb=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)}},Bb=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)}},Fb=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)}},Vb=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)}},Jb=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)}},Zb=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)}},Kb=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)}},Qb=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)}},Yb=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)}},Xb=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)}},ey=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)}},iy=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)}},ny=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)}},ty=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)}},ay=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)}},ry=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)}},sy=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)}},oy=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)}},ly=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)}},uy=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)}},cy=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)}},py=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=_A,this.AgentAssistantsApi=HA,this.AgentCopilotApi=IA,this.AgentUIApi=RA,this.AlertingApi=zA,this.AnalyticsApi=DA,this.ArchitectApi=GA,this.AssistantCopilotVariationsApi=$A,this.AuditApi=NA,this.AuthorizationApi=UA,this.BackgroundAssistantApi=LA,this.BillingApi=WA,this.BusinessRulesApi=BA,this.CarrierServicesApi=FA,this.CaseManagementApi=VA,this.ChatApi=JA,this.CoachingApi=ZA,this.ContentManagementApi=KA,this.ConversationsApi=QA,this.DataExtensionsApi=YA,this.DataPrivacyApi=XA,this.DownloadsApi=eb,this.EmailsApi=ib,this.EmployeeEngagementApi=nb,this.EventsApi=tb,this.ExternalContactsApi=ab,this.FaxApi=rb,this.FlowsApi=sb,this.GamificationApi=ob,this.GeneralDataProtectionRegulationApi=lb,this.GeolocationApi=ub,this.GreetingsApi=cb,this.GroupsApi=pb,this.IdentityProviderApi=db,this.InfrastructureAsCodeApi=hb,this.IntegrationsApi=gb,this.IntentsApi=mb,this.JourneyApi=fb,this.KnowledgeApi=wb,this.LanguageUnderstandingApi=vb,this.LanguagesApi=Cb,this.LearningApi=Ab,this.LicenseApi=bb,this.LocationsApi=yb,this.LogCaptureApi=Pb,this.MessagingApi=jb,this.MobileDevicesApi=Sb,this.NotificationsApi=Ob,this.OAuthApi=xb,this.ObjectsApi=Tb,this.OperationalEventsApi=Mb,this.OrganizationApi=Eb,this.OrganizationAuthorizationApi=kb,this.OutboundApi=qb,this.PresenceApi=_b,this.ProcessAutomationApi=Hb,this.QualityApi=Ib,this.RecordingApi=Rb,this.ResponseManagementApi=zb,this.RoutingApi=Db,this.SCIMApi=Gb,this.ScriptsApi=$b,this.SearchApi=Nb,this.SettingsApi=Ub,this.SocialMediaApi=Lb,this.SpeechTextAnalyticsApi=Wb,this.StationsApi=Bb,this.SuggestApi=Fb,this.TaskManagementApi=Vb,this.TeamsApi=Jb,this.TelephonyApi=Zb,this.TelephonyProvidersEdgeApi=Kb,this.TextbotsApi=Qb,this.TokensApi=Yb,this.UploadsApi=Xb,this.UsageApi=ey,this.UserRecordingsApi=iy,this.UsersApi=ny,this.UsersRulesApi=ty,this.UtilitiesApi=ay,this.VoicemailApi=ry,this.WebChatApi=sy,this.WebDeploymentsApi=oy,this.WebMessagingApi=ly,this.WidgetsApi=uy,this.WorkforceManagementApi=cy,this.PureCloudRegionHosts=bX,this.AbstractHttpClient=_l,this.DefaultHttpClient=vd,this.HttpRequestOptions=Qt}},PX=new py;fR.exports=PX});var ti={};bd(ti,{BRAND:()=>fz,DIRTY:()=>Xt,EMPTY_PATH:()=>JR,INVALID:()=>K,NEVER:()=>Xz,OK:()=>Ti,ParseStatus:()=>Ai,Schema:()=>ae,ZodAny:()=>Ct,ZodArray:()=>nt,ZodBigInt:()=>ia,ZodBoolean:()=>na,ZodBranded:()=>Cs,ZodCatch:()=>ha,ZodDate:()=>ta,ZodDefault:()=>da,ZodDiscriminatedUnion:()=>$l,ZodEffects:()=>sn,ZodEnum:()=>ca,ZodError:()=>Di,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Ul,ZodIntersection:()=>oa,ZodIssueCode:()=>M,ZodLazy:()=>la,ZodLiteral:()=>ua,ZodMap:()=>lr,ZodNaN:()=>cr,ZodNativeEnum:()=>pa,ZodNever:()=>Cn,ZodNull:()=>ra,ZodNullable:()=>Hn,ZodNumber:()=>ea,ZodObject:()=>Gi,ZodOptional:()=>an,ZodParsedType:()=>z,ZodPipeline:()=>As,ZodPromise:()=>At,ZodReadonly:()=>ga,ZodRecord:()=>Nl,ZodSchema:()=>ae,ZodSet:()=>ur,ZodString:()=>vt,ZodSymbol:()=>sr,ZodTransformer:()=>sn,ZodTuple:()=>_n,ZodType:()=>ae,ZodUndefined:()=>aa,ZodUnion:()=>sa,ZodUnknown:()=>it,ZodVoid:()=>or,addIssueToContext:()=>_,any:()=>Sz,array:()=>Mz,bigint:()=>Az,boolean:()=>Ey,coerce:()=>Yz,custom:()=>xy,date:()=>bz,datetimeRegex:()=>Sy,defaultErrorMap:()=>Xn,discriminatedUnion:()=>qz,effect:()=>Wz,enum:()=>Nz,function:()=>Dz,getErrorMap:()=>tr,getParsedType:()=>qn,instanceof:()=>vz,intersection:()=>_z,isAborted:()=>Dl,isAsync:()=>ar,isDirty:()=>Gl,isValid:()=>wt,late:()=>wz,lazy:()=>Gz,literal:()=>$z,makeIssue:()=>vs,map:()=>Rz,nan:()=>Cz,nativeEnum:()=>Uz,never:()=>xz,null:()=>jz,nullable:()=>Fz,number:()=>My,object:()=>Sd,objectUtil:()=>yd,oboolean:()=>Qz,onumber:()=>Kz,optional:()=>Bz,ostring:()=>Zz,pipeline:()=>Jz,preprocess:()=>Vz,promise:()=>Lz,quotelessJson:()=>BR,record:()=>Iz,set:()=>zz,setErrorMap:()=>VR,strictObject:()=>Ez,string:()=>Ty,symbol:()=>yz,transformer:()=>Wz,tuple:()=>Hz,undefined:()=>Pz,union:()=>kz,unknown:()=>Oz,util:()=>ce,void:()=>Tz});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 yd;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(yd||(yd={}));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"]),BR=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Di=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()}};Di.create=t=>new Di(t);var FR=(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}},Xn=FR;var Ay=Xn;function VR(t){Ay=t}function tr(){return Ay}var vs=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}},JR=[];function _(t,e){let i=tr(),n=vs({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===Xn?void 0:Xn].filter(a=>!!a)});t.common.issues.push(n)}var Ai=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"}),Xt=t=>({status:"dirty",value:t}),Ti=t=>({status:"valid",value:t}),Dl=t=>t.status==="aborted",Gl=t=>t.status==="dirty",wt=t=>t.status==="valid",ar=t=>typeof Promise<"u"&&t instanceof Promise;var U;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(U||(U={}));var rn=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}},by=(t,e)=>{if(wt(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 Di(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 Ai,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(ar(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 by(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 wt(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=>wt(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(ar(a)?a:Promise.resolve(a));return by(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 sn({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 an.create(this,this._def)}nullable(){return Hn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return nt.create(this)}promise(){return At.create(this,this._def)}or(e){return sa.create([this,e],this._def)}and(e){return oa.create(this,e,this._def)}transform(e){return new sn({...ne(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let i=typeof e=="function"?e:()=>e;return new da({...ne(this._def),innerType:this,defaultValue:i,typeName:E.ZodDefault})}brand(){return new Cs({typeName:E.ZodBranded,type:this,...ne(this._def)})}catch(e){let i=typeof e=="function"?e:()=>e;return new ha({...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 As.create(this,e)}readonly(){return ga.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},ZR=/^c[^\s-]{8,}$/i,KR=/^[0-9a-z]+$/,QR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,YR=/^[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,XR=/^[a-z0-9_-]{21}$/i,ez=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,iz=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nz=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Pd,az=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,rz=/^(?:(?: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])$/,sz=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,oz=/^(([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])$/,lz=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,uz=/^([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])))",cz=new RegExp(`^${Py}$`);function jy(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 pz(t){return new RegExp(`^${jy(t)}$`)}function Sy(t){let e=`${Py}T${jy(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 dz(t,e){return!!((e==="v4"||!e)&&az.test(t)||(e==="v6"||!e)&&sz.test(t))}function hz(t,e){if(!ez.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 gz(t,e){return!!((e==="v4"||!e)&&rz.test(t)||(e==="v6"||!e)&&oz.test(t))}var vt=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 Ai,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 vt({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ne(t)});function mz(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 ea=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 Ai;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"?mz(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 ea({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ne(t)});var ia=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 Ai;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 ia({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ne(t)});var na=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 Ti(e.data)}};na.create=t=>new na({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ne(t)});var ta=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 Ai,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 ta({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ne(t)});var sr=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 Ti(e.data)}};sr.create=t=>new sr({typeName:E.ZodSymbol,...ne(t)});var aa=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 Ti(e.data)}};aa.create=t=>new aa({typeName:E.ZodUndefined,...ne(t)});var ra=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 Ti(e.data)}};ra.create=t=>new ra({typeName:E.ZodNull,...ne(t)});var Ct=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return Ti(e.data)}};Ct.create=t=>new Ct({typeName:E.ZodAny,...ne(t)});var it=class extends ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ti(e.data)}};it.create=t=>new it({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 or=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 Ti(e.data)}};or.create=t=>new or({typeName:E.ZodVoid,...ne(t)});var nt=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 rn(i,s,i.path,o)))).then(s=>Ai.mergeArray(n,s));let r=[...i.data].map((s,o)=>a.type._parseSync(new rn(i,s,i.path,o)));return Ai.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)}};nt.create=(t,e)=>new nt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ne(e)});function rr(t){if(t instanceof Gi){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=an.create(rr(n))}return new Gi({...t._def,shape:()=>e})}else return t instanceof nt?new nt({...t._def,type:rr(t.element)}):t instanceof an?an.create(rr(t.unwrap())):t instanceof Hn?Hn.create(rr(t.unwrap())):t instanceof _n?_n.create(t.items.map(e=>rr(e))):t}var Gi=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 rn(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 rn(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=>Ai.mergeObjectSync(n,u)):Ai.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 rr(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 an;)r=r._def.innerType;i[n]=r}return new t({...this._def,shape:()=>i})}keyof(){return Oy(ce.objectKeys(this.shape))}};Gi.create=(t,e)=>new Gi({shape:()=>t,unknownKeys:"strip",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});Gi.strictCreate=(t,e)=>new Gi({shape:()=>t,unknownKeys:"strict",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});Gi.lazycreate=(t,e)=>new Gi({shape:t,unknownKeys:"strip",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});var sa=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 Di(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 Di(l));return _(i,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};sa.create=(t,e)=>new sa({options:t,typeName:E.ZodUnion,...ne(e)});var et=t=>t instanceof la?et(t.schema):t instanceof sn?et(t.innerType()):t instanceof ua?[t.value]:t instanceof ca?t.options:t instanceof pa?ce.objectValues(t.enum):t instanceof da?et(t._def.innerType):t instanceof aa?[void 0]:t instanceof ra?[null]:t instanceof an?[void 0,...et(t.unwrap())]:t instanceof Hn?[null,...et(t.unwrap())]:t instanceof Cs||t instanceof ga?et(t.unwrap()):t instanceof ha?et(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=et(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 jd(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=jd(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(Dl(r)||Dl(s))return K;let o=jd(r.value,s.value);return o.valid?((Gl(r)||Gl(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}))}};oa.create=(t,e,i)=>new oa({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 rn(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(r).then(s=>Ai.mergeArray(i,s)):Ai.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 Nl=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 rn(n,o,n.path,o)),value:s._parse(new rn(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Ai.mergeObjectAsync(i,a):Ai.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:vt.create(),valueType:e,typeName:E.ZodRecord,...ne(i)})}},lr=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 rn(n,o,n.path,[u,"key"])),value:r._parse(new rn(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}}}};lr.create=(t,e,i)=>new lr({valueType:e,keyType:t,typeName:E.ZodMap,...ne(i)});var ur=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 rn(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)}};ur.create=(t,e)=>new ur({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ne(e)});var Ul=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 vs({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,tr(),Xn].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:l}})}function a(o,l){return vs({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,tr(),Xn].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 At){let o=this;return Ti(async function(...l){let u=new Di([]),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 Ti(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new Di([n(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new Di([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(it.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,i,n){return new t({args:e||_n.create([]).rest(it.create()),returns:i||it.create(),typeName:E.ZodFunction,...ne(n)})}},la=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})}};la.create=(t,e)=>new la({getter:t,typeName:E.ZodLazy,...ne(e)});var ua=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}};ua.create=(t,e)=>new ua({value:t,typeName:E.ZodLiteral,...ne(e)});function Oy(t,e){return new ca({values:t,typeName:E.ZodEnum,...ne(e)})}var ca=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 Ti(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})}};ca.create=Oy;var pa=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 Ti(e.data)}get enum(){return this._def.values}};pa.create=(t,e)=>new pa({values:t,typeName:E.ZodNativeEnum,...ne(e)});var At=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 Ti(n.then(a=>this._def.type.parseAsync(a,{path:i.path,errorMap:i.common.contextualErrorMap})))}};At.create=(t,e)=>new At({type:t,typeName:E.ZodPromise,...ne(e)});var sn=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"?Xt(l.value):i.value==="dirty"?Xt(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"?Xt(o.value):i.value==="dirty"?Xt(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(!wt(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=>wt(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:i.value,value:o})):K);ce.assertNever(a)}};sn.create=(t,e,i)=>new sn({schema:t,typeName:E.ZodEffects,effect:e,...ne(i)});sn.createWithPreprocess=(t,e,i)=>new sn({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ne(i)});var an=class extends ae{_parse(e){return this._getType(e)===z.undefined?Ti(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};an.create=(t,e)=>new an({innerType:t,typeName:E.ZodOptional,...ne(e)});var Hn=class extends ae{_parse(e){return this._getType(e)===z.null?Ti(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 da=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}};da.create=(t,e)=>new da({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});var ha=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 ar(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Di(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Di(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ha.create=(t,e)=>new ha({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});var cr=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}}};cr.create=t=>new cr({typeName:E.ZodNaN,...ne(t)});var fz=Symbol("zod_brand"),Cs=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}},As=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(),Xt(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})}},ga=class extends ae{_parse(e){let i=this._def.innerType._parse(e),n=a=>(wt(a)&&(a.value=Object.freeze(a.value)),a);return ar(i)?i.then(a=>n(a)):n(i)}unwrap(){return this._def.innerType}};ga.create=(t,e)=>new ga({innerType:t,typeName:E.ZodReadonly,...ne(e)});function yy(t,e){let i=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof i=="string"?{message:i}:i}function xy(t,e={},i){return t?Ct.create().superRefine((n,a)=>{let r=t(n);if(r instanceof Promise)return r.then(s=>{if(!s){let o=yy(e,n),l=o.fatal??i??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=yy(e,n),o=s.fatal??i??!0;a.addIssue({code:"custom",...s,fatal:o})}}):Ct.create()}var wz={object:Gi.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 vz=(t,e={message:`Input not instance of ${t.name}`})=>xy(i=>i instanceof t,e),Ty=vt.create,My=ea.create,Cz=cr.create,Az=ia.create,Ey=na.create,bz=ta.create,yz=sr.create,Pz=aa.create,jz=ra.create,Sz=Ct.create,Oz=it.create,xz=Cn.create,Tz=or.create,Mz=nt.create,Sd=Gi.create,Ez=Gi.strictCreate,kz=sa.create,qz=$l.create,_z=oa.create,Hz=_n.create,Iz=Nl.create,Rz=lr.create,zz=ur.create,Dz=Ul.create,Gz=la.create,$z=ua.create,Nz=ca.create,Uz=pa.create,Lz=At.create,Wz=sn.create,Bz=an.create,Fz=Hn.create,Vz=sn.createWithPreprocess,Jz=As.create,Zz=()=>Ty().optional(),Kz=()=>My().optional(),Qz=()=>Ey().optional(),Yz={string:(t=>vt.create({...t,coerce:!0})),number:(t=>ea.create({...t,coerce:!0})),boolean:(t=>na.create({...t,coerce:!0})),bigint:(t=>ia.create({...t,coerce:!0})),date:(t=>ta.create({...t,coerce:!0}))};var Xz=K;var ky;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 vee=Symbol("zod_brand"),In=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},pr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(ky=globalThis).__zod_globalConfig??(ky.__zod_globalConfig={});var dr=globalThis.__zod_globalConfig;function Yi(t){return t&&Object.assign(dr,t),dr}var he={};bd(he,{BIGINT_FORMAT_RANGES:()=>Hy,Class:()=>xd,NUMBER_FORMAT_RANGES:()=>Hd,aborted:()=>Pt,allowsEval:()=>Ed,assert:()=>rD,assertEqual:()=>iD,assertIs:()=>tD,assertNever:()=>aD,assertNotEqual:()=>nD,assignProp:()=>bt,base64ToUint8Array:()=>Uy,base64urlToUint8Array:()=>fD,cached:()=>gr,captureStackTrace:()=>Bl,cleanEnum:()=>mD,cleanRegex:()=>js,clone:()=>Xi,cloneDef:()=>oD,createTransparentProxy:()=>hD,defineLazy:()=>Oe,esc:()=>Wl,escapeRegex:()=>at,explicitlyAborted:()=>Id,extend:()=>zy,finalizeIssue:()=>on,floatSafeRemainder:()=>Td,getElementAtPath:()=>lD,getEnumValues:()=>ys,getLengthableOrigin:()=>Ss,getParsedType:()=>dD,getSizableOrigin:()=>Ny,hexToUint8Array:()=>vD,isObject:()=>ma,isPlainObject:()=>yt,issue:()=>mr,joinValues:()=>Ll,jsonStringifyReplacer:()=>hr,merge:()=>gD,mergeDefs:()=>tt,normalizeParams:()=>J,nullish:()=>Ps,numKeys:()=>pD,objectClone:()=>sD,omit:()=>Ry,optionalKeys:()=>_d,parsedType:()=>Rd,partial:()=>Gy,pick:()=>Iy,prefixIssues:()=>rt,primitiveTypes:()=>_y,promiseAllObject:()=>uD,propertyKeyTypes:()=>qd,randomString:()=>cD,required:()=>$y,safeExtend:()=>Dy,shallowClone:()=>kd,slugify:()=>Md,stringifyPrimitive:()=>Fl,uint8ArrayToBase64:()=>Ly,uint8ArrayToBase64url:()=>wD,uint8ArrayToHex:()=>CD,unwrapMessage:()=>bs});function iD(t){return t}function nD(t){return t}function tD(t){}function aD(t){throw new Error("Unexpected value in exhaustive check")}function rD(t){}function ys(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 Ll(t,e="|"){return t.map(i=>Fl(i)).join(e)}function hr(t,e){return typeof e=="bigint"?e.toString():e}function gr(t){return{get value(){{let i=t();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function Ps(t){return t==null}function js(t){let e=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;return t.slice(e,i)}function Td(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 uD(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 ma(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Ed=gr(()=>{if(dr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function yt(t){if(ma(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let i=e.prototype;return!(ma(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function kd(t){return yt(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function pD(t){let e=0;for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e++;return e}var dD=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}`)}},qd=new Set(["string","number","symbol"]),_y=new Set(["string","number","bigint","boolean","symbol","undefined"]);function at(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xi(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 hD(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 Fl(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function _d(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Hd={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]},Hy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Iy(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=tt(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 bt(this,"shape",s),s},checks:[]});return Xi(t,r)}function Ry(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=tt(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 bt(this,"shape",s),s},checks:[]});return Xi(t,r)}function zy(t,e){if(!yt(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=tt(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return bt(this,"shape",r),r}});return Xi(t,a)}function Dy(t,e){if(!yt(e))throw new Error("Invalid input to safeExtend: expected a plain object");let i=tt(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return bt(this,"shape",n),n}});return Xi(t,i)}function gD(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=tt(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return bt(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Xi(t,i)}function Gy(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=tt(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 bt(this,"shape",l),l},checks:[]});return Xi(e,s)}function $y(t,e,i){let n=tt(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 bt(this,"shape",r),r}});return Xi(e,n)}function Pt(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 bs(t){return typeof t=="string"?t:t?.message}function on(t,e,i){let n=t.message?t.message:bs(t.inst?._zod.def?.error?.(t))??bs(e?.error?.(t))??bs(i.customError?.(t))??bs(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 Ny(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Ss(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Rd(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 mr(...t){let[e,i,n]=t;return typeof e=="string"?{message:e,code:"custom",input:i,inst:n}:{...e}}function mD(t){return Object.entries(t).filter(([e,i])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Uy(t){let e=atob(t),i=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var xd=class{constructor(...e){}};var Wy=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,hr,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Vl=j("$ZodError",Wy),Os=j("$ZodError",Wy,{Parent:Error});function By(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 Fy(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 In;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>on(l,r,Yi())));throw Bl(o,a?.callee),o}return s.value},Jl=xs(Os),Ts=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,Yi())));throw Bl(o,a?.callee),o}return s.value},Zl=Ts(Os),Ms=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 In;return r.issues.length?{success:!1,error:new(t??Vl)(r.issues.map(s=>on(s,a,Yi())))}:{success:!0,data:r.value}},fa=Ms(Os),Es=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,Yi())))}:{success:!0,data:r.value}},wa=Es(Os),Vy=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return xs(t)(e,i,a)};var Jy=t=>(e,i,n)=>xs(t)(e,i,n);var Zy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ts(t)(e,i,a)};var Ky=t=>async(e,i,n)=>Ts(t)(e,i,n);var Qy=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ms(t)(e,i,a)};var Yy=t=>(e,i,n)=>Ms(t)(e,i,n);var Xy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Es(t)(e,i,a)};var eP=t=>async(e,i,n)=>Es(t)(e,i,n);var iP=/^[cC][0-9a-z]{6,}$/,nP=/^[0-9a-z]+$/,tP=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,aP=/^[0-9a-vA-V]{20}$/,rP=/^[A-Za-z0-9]{27}$/,sP=/^[a-zA-Z0-9_-]{21}$/,oP=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var lP=/^([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})$/,zd=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 uP=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var bD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function cP(){return new RegExp(bD,"u")}var pP=/^(?:(?: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])$/,dP=/^(([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 hP=/^((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])$/,gP=/^(([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])$/,mP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Dd=/^[A-Za-z0-9_-]*$/;var fP=/^https?$/,wP=/^\+[1-9]\d{6,14}$/,vP="(?:(?:\\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])))",CP=new RegExp(`^${vP}$`);function AP(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 bP(t){return new RegExp(`^${AP(t)}$`)}function yP(t){let e=AP({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(`^${vP}T(?:${n})$`)}var PP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var jP=/^-?\d+$/,Gd=/^-?\d+(?:\.\d+)?$/,SP=/^(?:true|false)$/i,OP=/^null$/i;var xP=/^[^A-Z]*$/,TP=/^[^a-z]*$/;var hi=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"},$d=j("$ZodCheckLessThan",(t,e)=>{hi.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{hi.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})}}),EP=j("$ZodCheckMultipleOf",(t,e)=>{hi.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):Td(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})}}),kP=j("$ZodCheckNumberFormat",(t,e)=>{hi.init(t,e),e.format=e.format||"float64";let i=e.format?.includes("int"),n=i?"int":"number",[a,r]=Hd[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=jP)}),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 qP=j("$ZodCheckMaxLength",(t,e)=>{var i;hi.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!Ps(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=Ss(a);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),_P=j("$ZodCheckMinLength",(t,e)=>{var i;hi.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!Ps(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=Ss(a);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),HP=j("$ZodCheckLengthEquals",(t,e)=>{var i;hi.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!Ps(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=Ss(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})}}),qs=j("$ZodCheckStringFormat",(t,e)=>{var i,n;hi.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=()=>{})}),IP=j("$ZodCheckRegex",(t,e)=>{qs.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})}}),RP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=xP),qs.init(t,e)}),zP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=TP),qs.init(t,e)}),DP=j("$ZodCheckIncludes",(t,e)=>{hi.init(t,e);let i=at(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})}}),GP=j("$ZodCheckStartsWith",(t,e)=>{hi.init(t,e);let i=new RegExp(`^${at(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})}}),$P=j("$ZodCheckEndsWith",(t,e)=>{hi.init(t,e);let i=new RegExp(`.*${at(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 NP=j("$ZodCheckOverwrite",(t,e)=>{hi.init(t,e),t._zod.check=i=>{i.value=e.tx(i.value)}});var Kl=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 _P={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=_P;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(Md(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=ga(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return ma(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()??hP(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)}),zd=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Yy),Ie.init(t,e)}),Dd=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=kd(n))}else e.pattern??(e.pattern=kd());Ie.init(t,e)}),Gd=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Xy),Ie.init(t,e)}),$d=j("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{try{let n=i.value.trim();if(!e.normalize&&e.protocol?.source===sP.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})}}}),Nd=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=eP()),Ie.init(t,e)}),Ud=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Ky),Ie.init(t,e)}),Ld=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=By),Ie.init(t,e)}),Wd=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Fy),Ie.init(t,e)}),Bd=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Vy),Ie.init(t,e)}),Fd=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Jy),Ie.init(t,e)}),Vd=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Zy),Ie.init(t,e)}),UP=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=dP(e)),Ie.init(t,e)}),LP=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=uP),Ie.init(t,e)}),WP=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=pP(e)),Ie.init(t,e)}),BP=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Qy),Ie.init(t,e)}),Jd=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=iP),Ie.init(t,e),t._zod.bag.format="ipv4"}),Zd=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=nP),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 Kd=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=tP),Ie.init(t,e)}),Qd=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=aP),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 FP(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Yd=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=rP),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{FP(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!e.abort})}});function tD(t){if(!qd.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=e.padEnd(Math.ceil(e.length/4)*4,"=");return FP(i)}var Xd=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=qd),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{tD(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!e.abort})}}),eh=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=oP),Ie.init(t,e)});function aD(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 ih=j("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{aD(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??_d,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}}),nh=j("$ZodNumberFormat",(t,e)=>{bP.init(t,e),Fl.init(t,e)}),th=j("$ZodBoolean",(t,e)=>{ke.init(t,e),t._zod.pattern=mP,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 ah=j("$ZodNull",(t,e)=>{ke.init(t,e),t._zod.pattern=fP,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 rh=j("$ZodUnknown",(t,e)=>{ke.init(t,e),t._zod.parse=i=>i}),sh=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 HP(t,e,i){t.issues.length&&e.issues.push(...tt(i,t.issues)),e.value[i]=t.value}var oh=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;sHP(u,i,s))):HP(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 VP(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=xd(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function JP(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 lh=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(()=>VP(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=ha,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?JP(c,u,o,l,n.value,t):c.length?Promise.all(c).then(()=>o):o}}),ZP=j("$ZodObjectJIT",(t,e)=>{lh.init(t,e);let i=t._zod.parse,n=dr(()=>VP(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 LP={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=LP;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=Pt(s),c;for(let p of o){if(p._zod.def.when){if(Id(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 In;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,s.issues.length!==d&&(u||(u=Pt(s,d)))});else{if(s.issues.length===d)continue;u||(u=Pt(s,d))}}return c?c.then(()=>s):s},r=(s,o,l)=>{if(Pt(s))return s.aborted=!0,s;let u=a(o,n,l);if(u instanceof Promise){if(l.async===!1)throw new In;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 In;return l.then(u=>a(u,n,o))}return a(l,n,o)}}Oe(t,"~standard",()=>({validate:a=>{try{let r=fa(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return wa(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),_s=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}}),Re=j("$ZodStringFormat",(t,e)=>{qs.init(t,e),_s.init(t,e)}),Ld=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=lP),Re.init(t,e)}),Wd=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=zd(n))}else e.pattern??(e.pattern=zd());Re.init(t,e)}),Bd=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=uP),Re.init(t,e)}),Fd=j("$ZodURL",(t,e)=>{Re.init(t,e),t._zod.check=i=>{try{let n=i.value.trim();if(!e.normalize&&e.protocol?.source===fP.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})}}}),Vd=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=cP()),Re.init(t,e)}),Jd=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=sP),Re.init(t,e)}),Zd=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=iP),Re.init(t,e)}),Kd=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=nP),Re.init(t,e)}),Qd=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=tP),Re.init(t,e)}),Yd=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=aP),Re.init(t,e)}),Xd=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=rP),Re.init(t,e)}),YP=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=yP(e)),Re.init(t,e)}),XP=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=CP),Re.init(t,e)}),ej=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=bP(e)),Re.init(t,e)}),ij=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=oP),Re.init(t,e)}),eh=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=pP),Re.init(t,e),t._zod.bag.format="ipv4"}),ih=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=dP),Re.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 nh=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=hP),Re.init(t,e)}),th=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=gP),Re.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 nj(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var ah=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=mP),Re.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{nj(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!e.abort})}});function yD(t){if(!Dd.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=e.padEnd(Math.ceil(e.length/4)*4,"=");return nj(i)}var rh=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Dd),Re.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{yD(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!e.abort})}}),sh=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=wP),Re.init(t,e)});function PD(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 oh=j("$ZodJWT",(t,e)=>{Re.init(t,e),t._zod.check=i=>{PD(i.value,e.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:t,continue:!e.abort})}});var Xl=j("$ZodNumber",(t,e)=>{ke.init(t,e),t._zod.pattern=t._zod.bag.pattern??Gd,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}}),lh=j("$ZodNumberFormat",(t,e)=>{kP.init(t,e),Xl.init(t,e)}),uh=j("$ZodBoolean",(t,e)=>{ke.init(t,e),t._zod.pattern=SP,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 ch=j("$ZodNull",(t,e)=>{ke.init(t,e),t._zod.pattern=OP,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 ph=j("$ZodUnknown",(t,e)=>{ke.init(t,e),t._zod.parse=i=>i}),dh=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 WP(t,e,i){t.issues.length&&e.issues.push(...rt(i,t.issues)),e.value[i]=t.value}var hh=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;sWP(u,i,s))):WP(l,i,s)}return r.length?Promise.all(r).then(()=>i):i}});function Yl(t,e,i,n,a,r){let s=i in n;if(t.issues.length){if(a&&r&&!s)return;e.issues.push(...rt(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 tj(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=_d(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function aj(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=>Yl(g,i,d,e,c,p))):Yl(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 gh=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=gr(()=>tj(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=ma,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=>Yl(v,o,d,u,g,m))):Yl(f,o,d,u,g,m)}return r?aj(c,u,o,l,n.value,t):c.length?Promise.all(c).then(()=>o):o}}),rj=j("$ZodObjectJIT",(t,e)=>{gh.init(t,e);let i=t._zod.parse,n=gr(()=>tj(e)),a=d=>{let h=new Kl(["shape","payload","ctx"]),g=n.value,m=A=>{let b=Wl(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=Wl(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,19 +134,19 @@ ${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=ha,o=!cr.jitless,u=o&&jd.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?JP([],g,d,h,p,t):d):i(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function RP(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,Yi())))}),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=>RP(o,n,t,a)):RP(s,n,t,a)}});var uh=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(!ha(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)}}),ch=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])=>IP(i,l,u)):IP(i,r,s)}});function Id(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=Id(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=Id(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 ph=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,Yi())),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"&&_d.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,Yi())),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 dh=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=>Od.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}}),hh=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 gh=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 zP(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=>zP(s,a)):zP(r,a)}return i.value===void 0?i:e.innerType._zod.run(i,n)}}),mh=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)}),fh=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)}),wh=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=>DP(r,e)):DP(a,e)}});function DP(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var vh=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))}),Ch=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=>GP(r,t)):GP(a,t)}});function GP(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 Ah=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,Yi()))},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,Yi()))},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 KP=j("$ZodPreprocess",(t,e)=>{Zl.init(t,e)}),bh=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($P):$P(a)}});function $P(t){return t.value=Object.freeze(t.value),t}var yh=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=>NP(r,i,n,t));NP(a,i,n,t)}});function NP(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 rD=()=>{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=Ed(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 QP(){return{localeError:rD()}}var YP,ZX=Symbol("ZodOutput"),KX=Symbol("ZodInput"),Ph=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 sD(){return new Ph}(YP=globalThis).__zod_globalRegistry??(YP.__zod_globalRegistry=sD());var fa=globalThis.__zod_globalRegistry;function jh(t,e){return new t({type:"string",...J(e)})}function Sh(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 Oh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function xh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function Th(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Mh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function Eh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function kh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function qh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function _h(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...J(e)})}function Hh(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(e)})}function Rh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function Ih(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function zh(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function Dh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Gh(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function $h(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function Nh(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function Uh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function Lh(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function Wh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function Bh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function XP(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function ej(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function ij(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function nj(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function Fh(t,e){return new t({type:"number",checks:[],...J(e)})}function Vh(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function Jh(t,e){return new t({type:"boolean",...J(e)})}function Zh(t,e){return new t({type:"null",...J(e)})}function Kh(t){return new t({type:"unknown"})}function Qh(t,e){return new t({type:"never",...J(e)})}function Ql(t,e){return new Hd({check:"less_than",...J(e),value:t,inclusive:!1})}function ks(t,e){return new Hd({check:"less_than",...J(e),value:t,inclusive:!0})}function Yl(t,e){return new Rd({check:"greater_than",...J(e),value:t,inclusive:!1})}function qs(t,e){return new Rd({check:"greater_than",...J(e),value:t,inclusive:!0})}function Xl(t,e){return new AP({check:"multiple_of",...J(e),value:t})}function eu(t,e){return new yP({check:"max_length",...J(e),maximum:t})}function gr(t,e){return new PP({check:"min_length",...J(e),minimum:t})}function iu(t,e){return new jP({check:"length_equals",...J(e),length:t})}function Yh(t,e){return new SP({check:"string_format",format:"regex",...J(e),pattern:t})}function Xh(t){return new OP({check:"string_format",format:"lowercase",...J(t)})}function eg(t){return new xP({check:"string_format",format:"uppercase",...J(t)})}function ig(t,e){return new TP({check:"string_format",format:"includes",...J(e),includes:t})}function ng(t,e){return new MP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function tg(t,e){return new EP({check:"string_format",format:"ends_with",...J(e),suffix:t})}function yt(t){return new kP({check:"overwrite",tx:t})}function ag(t){return yt(e=>e.normalize(t))}function rg(){return yt(t=>t.trim())}function sg(){return yt(t=>t.toLowerCase())}function og(){return yt(t=>t.toUpperCase())}function lg(){return yt(t=>Pd(t))}function tj(t,e,i){return new t({type:"array",element:e,...J(i)})}function ug(t,e,i){let n=J(i);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function cg(t,e,i){return new t({type:"custom",check:"custom",fn:e,...J(i)})}function pg(t,e){let i=oD(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 oD(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??fa,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"&&qi(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=ma,o=!dr.jitless,u=o&&Ed.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?aj([],g,d,h,p,t):d):i(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function BP(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=>!Pt(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,Yi())))}),e)}var eu=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=>js(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=>BP(o,n,t,a)):BP(s,n,t,a)}});var mh=j("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,eu.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=gr(()=>{let a=e.options,r=new Map;for(let s of a){let o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of o){if(r.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);r.set(l,s)}}return r});t._zod.parse=(a,r)=>{let s=a.value;if(!ma(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)}}),fh=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])=>FP(i,l,u)):FP(i,r,s)}});function Ud(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(yt(t)&&yt(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=Ud(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}),Pt(t))return t;let s=Ud(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 wh=j("$ZodRecord",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!yt(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,Yi())),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(...rt(u,h.issues)),i.value[p]=h.value})):(d.issues.length&&i.issues.push(...rt(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"&&Gd.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,Yi())),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(...rt(o,p.issues)),i.value[l.value]=p.value})):(c.issues.length&&i.issues.push(...rt(o,c.issues)),i.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>i):i}});var vh=j("$ZodEnum",(t,e)=>{ke.init(t,e);let i=ys(e.entries),n=new Set(i);t._zod.values=n,t._zod.pattern=new RegExp(`^(${i.filter(a=>qd.has(typeof a)).map(a=>typeof a=="string"?at(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"?at(n):n?at(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 Ah=j("$ZodTransform",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new pr(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 In;return i.value=a,i.fallback=!0,i}});function VP(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var iu=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(`^(${js(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=>VP(s,a)):VP(r,a)}return i.value===void 0?i:e.innerType._zod.run(i,n)}}),bh=j("$ZodExactOptional",(t,e)=>{iu.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)}),yh=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(`^(${js(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)}),Ph=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=>JP(r,e)):JP(a,e)}});function JP(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var jh=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))}),Sh=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 Oh=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,Yi()))},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,Yi()))},input:i.value}),i.issues=[],i.fallback=!0),i)}});var nu=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=>Ql(s,e.in,n)):Ql(r,e.in,n)}let a=e.in._zod.run(i,n);return a instanceof Promise?a.then(r=>Ql(r,e.out,n)):Ql(a,e.out,n)}});function Ql(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 sj=j("$ZodPreprocess",(t,e)=>{nu.init(t,e)}),xh=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(KP):KP(a)}});function KP(t){return t.value=Object.freeze(t.value),t}var Th=j("$ZodCustom",(t,e)=>{hi.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=>QP(r,i,n,t));QP(a,i,n,t)}});function QP(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(mr(a))}}var jD=()=>{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=Rd(a.input),o=n[s]??s;return`Invalid input: expected ${r}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Fl(a.values[0])}`:`Invalid option: expected one of ${Ll(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":""}: ${Ll(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 oj(){return{localeError:jD()}}var lj,Hee=Symbol("ZodOutput"),Iee=Symbol("ZodInput"),Mh=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 SD(){return new Mh}(lj=globalThis).__zod_globalRegistry??(lj.__zod_globalRegistry=SD());var va=globalThis.__zod_globalRegistry;function Eh(t,e){return new t({type:"string",...J(e)})}function kh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...J(e)})}function tu(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...J(e)})}function qh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function _h(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function Hh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Ih(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function Rh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function zh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function Dh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function Gh(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 Nh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function Uh(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function Lh(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function Wh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Bh(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function Fh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function Vh(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function Jh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function Zh(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function Kh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function Qh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function uj(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function cj(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function pj(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function dj(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function Yh(t,e){return new t({type:"number",checks:[],...J(e)})}function Xh(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function eg(t,e){return new t({type:"boolean",...J(e)})}function ig(t,e){return new t({type:"null",...J(e)})}function ng(t){return new t({type:"unknown"})}function tg(t,e){return new t({type:"never",...J(e)})}function au(t,e){return new $d({check:"less_than",...J(e),value:t,inclusive:!1})}function Hs(t,e){return new $d({check:"less_than",...J(e),value:t,inclusive:!0})}function ru(t,e){return new Nd({check:"greater_than",...J(e),value:t,inclusive:!1})}function Is(t,e){return new Nd({check:"greater_than",...J(e),value:t,inclusive:!0})}function su(t,e){return new EP({check:"multiple_of",...J(e),value:t})}function ou(t,e){return new qP({check:"max_length",...J(e),maximum:t})}function fr(t,e){return new _P({check:"min_length",...J(e),minimum:t})}function lu(t,e){return new HP({check:"length_equals",...J(e),length:t})}function ag(t,e){return new IP({check:"string_format",format:"regex",...J(e),pattern:t})}function rg(t){return new RP({check:"string_format",format:"lowercase",...J(t)})}function sg(t){return new zP({check:"string_format",format:"uppercase",...J(t)})}function og(t,e){return new DP({check:"string_format",format:"includes",...J(e),includes:t})}function lg(t,e){return new GP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function ug(t,e){return new $P({check:"string_format",format:"ends_with",...J(e),suffix:t})}function jt(t){return new NP({check:"overwrite",tx:t})}function cg(t){return jt(e=>e.normalize(t))}function pg(){return jt(t=>t.trim())}function dg(){return jt(t=>t.toLowerCase())}function hg(){return jt(t=>t.toUpperCase())}function gg(){return jt(t=>Md(t))}function hj(t,e,i){return new t({type:"array",element:e,...J(i)})}function mg(t,e,i){let n=J(i);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function fg(t,e,i){return new t({type:"custom",check:"custom",fn:e,...J(i)})}function wg(t,e){let i=OD(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(mr(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(mr(r))}},t(n.value,n)),e);return i}function OD(t,e){let i=new hi({check:"custom",...J(e)});return i._zod.check=t,i}function zs(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??va,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"&&qi(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 Ds(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 qi(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 qi(n.element,i);if(n.type==="set")return qi(n.valueType,i);if(n.type==="lazy")return qi(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 qi(n.innerType,i);if(n.type==="intersection")return qi(n.left,i)||qi(n.right,i);if(n.type==="record"||n.type==="map")return qi(n.keyType,i)||qi(n.valueType,i);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:qi(n.in,i)||qi(n.out,i);if(n.type==="object"){for(let a in n.shape)if(qi(n.shape[a],i))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(qi(a,i))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(qi(a,i))return!0;return!!(n.rest&&qi(n.rest,i))}return!1}var aj=(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 lD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},dg=(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=lD[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}))])}},hg=(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)},gg=(t,e,i,n)=>{i.type="boolean"},sj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},oj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},mg=(t,e,i,n)=>{e.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},lj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},uj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},fg=(t,e,i,n)=>{i.not={}},cj=(t,e,i,n)=>{},wg=(t,e,i,n)=>{},pj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},vg=(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},Cg=(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},dj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},hj=(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},gj=(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)},mj=(t,e,i,n)=>{i.type="boolean"},Ag=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},fj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},bg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},wj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},vj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},yg=(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"]})},Pg=(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)},jg=(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},Sg=(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},Cj=(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)},Og=(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)}},xg=(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"}]},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},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,i.default=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,e.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},kg=(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},qg=(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},_g=(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},Aj=(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},bj=(t,e,i,n)=>{let a=t._zod.innerType;qe(a,e,n);let r=e.seen.get(t);r.ref=a},rj={string:dg,number:hg,boolean:gg,bigint:sj,symbol:oj,null:mg,undefined:lj,void:uj,never:fg,any:cj,unknown:wg,date:pj,enum:vg,literal:Cg,nan:dj,template_literal:hj,file:gj,success:mj,custom:Ag,function:fj,transform:bg,map:wj,set:vj,array:yg,object:Pg,union:jg,intersection:Sg,tuple:Cj,record:Og,nullable:xg,nonoptional:Tg,default:Mg,prefault:Eg,catch:kg,pipe:qg,readonly:_g,promise:Aj,optional:nu,lazy:bj};function Hg(t,e){if("_idmap"in t){let n=t,a=Hs({...e,processors:rj}),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:rj});return qe(t,i),Rs(i,t),Is(i,t)}var QD=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)=>ga(t,i,n),t.parseAsync=async(i,n)=>Ul(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>ma(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)=>Xi(t,i,n),t.brand=()=>t,t.register=((i,n)=>(i.add(t,n),t)),t.apply=i=>i(t)});var YD=j("ZodMiniObject",(t,e)=>{lh.init(t,e),QD.init(t,e),Oe(t,"shape",()=>e.shape)});function Rg(t,e){let i={type:"object",shape:t??{},...J(e)};return new YD(i)}function ln(t){return!!t._zod}function va(t){let e=Object.values(t);if(e.length===0)return Rg({});let i=e.every(ln),n=e.every(a=>!ln(a));if(i)return Rg(t);if(n)return Cd(t);throw new Error("Mixed Zod versions detected in object shape.")}function Pt(t,e){return ln(t)?ga(t,e):t.safeParse(e)}async function tu(t,e){return ln(t)?await ma(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 va(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 Pj(t){return t.description}function jj(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={};md(zs,{ZodISODate:()=>Oj,ZodISODateTime:()=>Sj,ZodISODuration:()=>Tj,ZodISOTime:()=>xj,date:()=>zg,datetime:()=>Ig,duration:()=>Gg,time:()=>Dg});var Sj=j("ZodISODateTime",(t,e)=>{UP.init(t,e),Le.init(t,e)});function Ig(t){return XP(Sj,t)}var Oj=j("ZodISODate",(t,e)=>{LP.init(t,e),Le.init(t,e)});function zg(t){return ej(Oj,t)}var xj=j("ZodISOTime",(t,e)=>{WP.init(t,e),Le.init(t,e)});function Dg(t){return ij(xj,t)}var Tj=j("ZodISODuration",(t,e)=>{BP.init(t,e),Le.init(t,e)});function Gg(t){return nj(Tj,t)}var sG=(t,e)=>{$l.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>Iy(t,i)},flatten:{value:i=>Ry(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 en=j("ZodError",sG,{Parent:Error});var Mj=js(en),Ej=Ss(en),kj=Os(en),qj=xs(en),_j=zy(en),Hj=Dy(en),Rj=Gy(en),Ij=$y(en),zj=Ny(en),Dj=Uy(en),Gj=Ly(en),$j=Wy(en);var Nj=new WeakMap;function Ds(t,e,i){let n=Object.getPrototypeOf(t),a=Nj.get(n);if(a||(a=new Set,Nj.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=aj(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(i,n)=>Mj(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>kj(t,i,n),t.parseAsync=async(i,n)=>Ej(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>qj(t,i,n),t.spa=t.safeParseAsync,t.encode=(i,n)=>_j(t,i,n),t.decode=(i,n)=>Hj(t,i,n),t.encodeAsync=async(i,n)=>Rj(t,i,n),t.decodeAsync=async(i,n)=>Ij(t,i,n),t.safeEncode=(i,n)=>zj(t,i,n),t.safeDecode=(i,n)=>Dj(t,i,n),t.safeEncodeAsync=async(i,n)=>Gj(t,i,n),t.safeDecodeAsync=async(i,n)=>$j(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 Xi(this,i,n)},brand(){return this},register(i,n){return i.add(this,n),this},refine(i,n){return this.check(KG(i,n))},superRefine(i,n){return this.check(QG(i,n))},overwrite(i){return this.check(yt(i))},optional(){return Be(this)},exactOptional(){return DG(this)},nullable(){return Bj(this)},nullish(){return Be(Bj(this))},nonoptional(i){return WG(this,i)},array(){return ge(this)},or(i){return $e([this,i])},and(i){return ou(this,i)},transform(i){return Fj(this,Yj(i))},default(i){return NG(this,i)},prefault(i){return LG(this,i)},catch(i){return FG(this,i)},pipe(i){return Fj(this,i)},readonly(){return ZG(this)},describe(i){let n=this.clone();return fa.add(n,{description:i}),n},meta(...i){if(i.length===0)return fa.get(this);let n=this.clone();return fa.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 fa.get(t)?.description},configurable:!0}),t)),Vj=j("_ZodString",(t,e)=>{Es.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>dg(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(Yh(...n))},includes(...n){return this.check(ig(...n))},startsWith(...n){return this.check(ng(...n))},endsWith(...n){return this.check(tg(...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(Xh(n))},uppercase(n){return this.check(eg(n))},trim(){return this.check(rg())},normalize(...n){return this.check(ag(...n))},toLowerCase(){return this.check(sg())},toUpperCase(){return this.check(og())},slugify(){return this.check(lg())}})}),lG=j("ZodString",(t,e)=>{Es.init(t,e),Vj.init(t,e),t.email=i=>t.check(Sh(uG,i)),t.url=i=>t.check(Eh(cG,i)),t.jwt=i=>t.check(Bh(SG,i)),t.emoji=i=>t.check(kh(pG,i)),t.guid=i=>t.check(Kl(Uj,i)),t.uuid=i=>t.check(Oh(su,i)),t.uuidv4=i=>t.check(xh(su,i)),t.uuidv6=i=>t.check(Th(su,i)),t.uuidv7=i=>t.check(Mh(su,i)),t.nanoid=i=>t.check(qh(dG,i)),t.guid=i=>t.check(Kl(Uj,i)),t.cuid=i=>t.check(_h(hG,i)),t.cuid2=i=>t.check(Hh(gG,i)),t.ulid=i=>t.check(Rh(mG,i)),t.base64=i=>t.check(Uh(yG,i)),t.base64url=i=>t.check(Lh(PG,i)),t.xid=i=>t.check(Ih(fG,i)),t.ksuid=i=>t.check(zh(wG,i)),t.ipv4=i=>t.check(Dh(vG,i)),t.ipv6=i=>t.check(Gh(CG,i)),t.cidrv4=i=>t.check($h(AG,i)),t.cidrv6=i=>t.check(Nh(bG,i)),t.e164=i=>t.check(Wh(jG,i)),t.datetime=i=>t.check(Ig(i)),t.date=i=>t.check(zg(i)),t.time=i=>t.check(Dg(i)),t.duration=i=>t.check(Gg(i))});function P(t){return jh(lG,t)}var Le=j("ZodStringFormat",(t,e)=>{Ie.init(t,e),Vj.init(t,e)}),uG=j("ZodEmail",(t,e)=>{Gd.init(t,e),Le.init(t,e)});var Uj=j("ZodGUID",(t,e)=>{zd.init(t,e),Le.init(t,e)});var su=j("ZodUUID",(t,e)=>{Dd.init(t,e),Le.init(t,e)});var cG=j("ZodURL",(t,e)=>{$d.init(t,e),Le.init(t,e)});var pG=j("ZodEmoji",(t,e)=>{Nd.init(t,e),Le.init(t,e)});var dG=j("ZodNanoID",(t,e)=>{Ud.init(t,e),Le.init(t,e)});var hG=j("ZodCUID",(t,e)=>{Ld.init(t,e),Le.init(t,e)});var gG=j("ZodCUID2",(t,e)=>{Wd.init(t,e),Le.init(t,e)});var mG=j("ZodULID",(t,e)=>{Bd.init(t,e),Le.init(t,e)});var fG=j("ZodXID",(t,e)=>{Fd.init(t,e),Le.init(t,e)});var wG=j("ZodKSUID",(t,e)=>{Vd.init(t,e),Le.init(t,e)});var vG=j("ZodIPv4",(t,e)=>{Jd.init(t,e),Le.init(t,e)});var CG=j("ZodIPv6",(t,e)=>{Zd.init(t,e),Le.init(t,e)});var AG=j("ZodCIDRv4",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var bG=j("ZodCIDRv6",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var yG=j("ZodBase64",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var PG=j("ZodBase64URL",(t,e)=>{Xd.init(t,e),Le.init(t,e)});var jG=j("ZodE164",(t,e)=>{eh.init(t,e),Le.init(t,e)});var SG=j("ZodJWT",(t,e)=>{ih.init(t,e),Le.init(t,e)});var Jj=j("ZodNumber",(t,e)=>{Fl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>hg(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(Lj(n))},safe(n){return this.check(Lj(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 Fh(Jj,t)}var OG=j("ZodNumberFormat",(t,e)=>{nh.init(t,e),Jj.init(t,e)});function Lj(t){return Vh(OG,t)}var xG=j("ZodBoolean",(t,e)=>{th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>gg(t,i,n,a)});function hi(t){return Jh(xG,t)}var TG=j("ZodNull",(t,e)=>{ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>mg(t,i,n,a)});function Zj(t){return Zh(TG,t)}var MG=j("ZodUnknown",(t,e)=>{rh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>wg(t,i,n,a)});function We(){return Kh(MG)}var EG=j("ZodNever",(t,e)=>{sh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>fg(t,i,n,a)});function kG(t){return Qh(EG,t)}var qG=j("ZodArray",(t,e)=>{oh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>yg(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 tj(qG,t,e)}var Kj=j("ZodObject",(t,e)=>{ZP.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Pg(t,i,n,a),he.defineLazy(t,"shape",()=>e.shape),Ds(t,"ZodObject",{keyof(){return $i(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:kG()})},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(Xj,this,i[0])}})});function D(t,e){let i={type:"object",shape:t??{},...he.normalizeParams(e)};return new Kj(i)}function _i(t,e){return new Kj({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var Qj=j("ZodUnion",(t,e)=>{Vl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>jg(t,i,n,a),t.options=e.options});function $e(t,e){return new Qj({type:"union",options:t,...he.normalizeParams(e)})}var _G=j("ZodDiscriminatedUnion",(t,e)=>{Qj.init(t,e),uh.init(t,e)});function Ng(t,e,i){return new _G({type:"union",options:e,discriminator:t,...he.normalizeParams(i)})}var HG=j("ZodIntersection",(t,e)=>{ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Sg(t,i,n,a)});function ou(t,e){return new HG({type:"intersection",left:t,right:e})}var Wj=j("ZodRecord",(t,e)=>{ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Og(t,i,n,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,i){return!e||!e._zod?new Wj({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new Wj({type:"record",keyType:t,valueType:e,...he.normalizeParams(i)})}var $g=j("ZodEnum",(t,e)=>{dh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>vg(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 $g({...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 $g({...e,checks:[],...he.normalizeParams(a),entries:r})}});function $i(t,e){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new $g({type:"enum",entries:i,...he.normalizeParams(e)})}var RG=j("ZodLiteral",(t,e)=>{hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Cg(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 RG({type:"literal",values:Array.isArray(t)?t:[t],...he.normalizeParams(e)})}var IG=j("ZodTransform",(t,e)=>{gh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>bg(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 Yj(t){return new IG({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 zG=j("ZodExactOptional",(t,e)=>{mh.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 DG(t){return new zG({type:"optional",innerType:t})}var GG=j("ZodNullable",(t,e)=>{fh.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 Bj(t){return new GG({type:"nullable",innerType:t})}var $G=j("ZodDefault",(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,t.removeDefault=t.unwrap});function NG(t,e){return new $G({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var UG=j("ZodPrefault",(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 LG(t,e){return new UG({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var Xj=j("ZodNonOptional",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Tg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function WG(t,e){return new Xj({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var BG=j("ZodCatch",(t,e)=>{Ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>kg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function FG(t,e){return new BG({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var eS=j("ZodPipe",(t,e)=>{Zl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>qg(t,i,n,a),t.in=e.in,t.out=e.out});function Fj(t,e){return new eS({type:"pipe",in:t,out:e})}var VG=j("ZodPreprocess",(t,e)=>{eS.init(t,e),KP.init(t,e)}),JG=j("ZodReadonly",(t,e)=>{bh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>_g(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function ZG(t){return new JG({type:"readonly",innerType:t})}var iS=j("ZodCustom",(t,e)=>{yh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ag(t,i,n,a)});function nS(t,e){return ug(iS,t??(()=>!0),e)}function KG(t,e={}){return cg(iS,t,e)}function QG(t,e){return pg(t,e)}function Ug(t,e){return new VG({type:"pipe",in:Yj(t),out:e})}Yi(QP());var Wg="2025-11-25";var tS=[Wg,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],St="io.modelcontextprotocol/related-task",cu="2.0",si=nS(t=>t!==null&&(typeof t=="object"||typeof t=="function")),aS=$e([P(),Te().int()]),rS=P(),aie=_i({ttl:Te().optional(),pollInterval:Te().optional()}),YG=D({ttl:Te().optional()}),XG=D({taskId:P()}),Bg=_i({progressToken:aS.optional(),[St]:XG.optional()}),nn=D({_meta:Bg.optional()}),Gs=nn.extend({task:YG.optional()}),sS=t=>Gs.safeParse(t).success,bi=D({method:P(),params:nn.loose().optional()}),un=D({_meta:Bg.optional()}),cn=D({method:P(),params:un.loose().optional()}),yi=_i({_meta:Bg.optional()}),pu=$e([P(),Te().int()]),oS=D({jsonrpc:W(cu),id:pu,...bi.shape}).strict(),Fg=t=>oS.safeParse(t).success,lS=D({jsonrpc:W(cu),...cn.shape}).strict(),uS=t=>lS.safeParse(t).success,Vg=D({jsonrpc:W(cu),id:pu,result:yi}).strict(),$s=t=>Vg.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 Jg=D({jsonrpc:W(cu),id:pu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var cS=t=>Jg.safeParse(t).success;var pS=$e([oS,lS,Vg,Jg]),rie=$e([Vg,Jg]),du=yi.strict(),e1=un.extend({requestId:pu.optional(),reason:P().optional()}),hu=cn.extend({method:W("notifications/cancelled"),params:e1}),i1=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:$i(["light","dark"]).optional()}),Ns=D({icons:ge(i1).optional()}),fr=D({name:P(),title:P().optional()}),dS=fr.extend({...fr.shape,...Ns.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),n1=ou(D({applyDefaults:hi().optional()}),ze(P(),We())),t1=Ug(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,ou(D({form:n1.optional(),url:si.optional()}),ze(P(),We()).optional())),a1=_i({list:si.optional(),cancel:si.optional(),requests:_i({sampling:_i({createMessage:si.optional()}).optional(),elicitation:_i({create:si.optional()}).optional()}).optional()}),r1=_i({list:si.optional(),cancel:si.optional(),requests:_i({tools:_i({call:si.optional()}).optional()}).optional()}),s1=D({experimental:ze(P(),si).optional(),sampling:D({context:si.optional(),tools:si.optional()}).optional(),elicitation:t1.optional(),roots:D({listChanged:hi().optional()}).optional(),tasks:a1.optional(),extensions:ze(P(),si).optional()}),o1=nn.extend({protocolVersion:P(),capabilities:s1,clientInfo:dS}),Zg=bi.extend({method:W("initialize"),params:o1});var l1=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:r1.optional(),extensions:ze(P(),si).optional()}),u1=yi.extend({protocolVersion:P(),capabilities:l1,serverInfo:dS,instructions:P().optional()}),Kg=cn.extend({method:W("notifications/initialized"),params:un.optional()});var gu=bi.extend({method:W("ping"),params:nn.optional()}),c1=D({progress:Te(),total:Be(Te()),message:Be(P())}),p1=D({...un.shape,...c1.shape,progressToken:aS}),mu=cn.extend({method:W("notifications/progress"),params:p1}),d1=nn.extend({cursor:rS.optional()}),Us=bi.extend({params:d1.optional()}),Ls=yi.extend({nextCursor:rS.optional()}),h1=$i(["working","input_required","completed","failed","cancelled"]),Ws=D({taskId:P(),status:h1,ttl:$e([Te(),Zj()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),wr=yi.extend({task:Ws}),g1=un.merge(Ws),Bs=cn.extend({method:W("notifications/tasks/status"),params:g1}),fu=bi.extend({method:W("tasks/get"),params:nn.extend({taskId:P()})}),wu=yi.merge(Ws),vu=bi.extend({method:W("tasks/result"),params:nn.extend({taskId:P()})}),sie=yi.loose(),Cu=Us.extend({method:W("tasks/list")}),Au=Ls.extend({tasks:ge(Ws)}),bu=bi.extend({method:W("tasks/cancel"),params:nn.extend({taskId:P()})}),hS=yi.merge(Ws),gS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),mS=gS.extend({text:P()}),Qg=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),fS=gS.extend({blob:Qg}),Fs=$i(["user","assistant"]),vr=D({audience:ge(Fs).optional(),priority:Te().min(0).max(1).optional(),lastModified:zs.datetime({offset:!0}).optional()}),wS=D({...fr.shape,...Ns.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:vr.optional(),_meta:Be(_i({}))}),m1=D({...fr.shape,...Ns.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:vr.optional(),_meta:Be(_i({}))}),yu=Us.extend({method:W("resources/list")}),f1=Ls.extend({resources:ge(wS)}),Pu=Us.extend({method:W("resources/templates/list")}),w1=Ls.extend({resourceTemplates:ge(m1)}),Yg=nn.extend({uri:P()}),v1=Yg,ju=bi.extend({method:W("resources/read"),params:v1}),C1=yi.extend({contents:ge($e([mS,fS]))}),A1=cn.extend({method:W("notifications/resources/list_changed"),params:un.optional()}),b1=Yg,y1=bi.extend({method:W("resources/subscribe"),params:b1}),P1=Yg,j1=bi.extend({method:W("resources/unsubscribe"),params:P1}),S1=un.extend({uri:P()}),O1=cn.extend({method:W("notifications/resources/updated"),params:S1}),x1=D({name:P(),description:Be(P()),required:Be(hi())}),T1=D({...fr.shape,...Ns.shape,description:Be(P()),arguments:Be(ge(x1)),_meta:Be(_i({}))}),Su=Us.extend({method:W("prompts/list")}),M1=Ls.extend({prompts:ge(T1)}),E1=nn.extend({name:P(),arguments:ze(P(),P()).optional()}),Ou=bi.extend({method:W("prompts/get"),params:E1}),Xg=D({type:W("text"),text:P(),annotations:vr.optional(),_meta:ze(P(),We()).optional()}),em=D({type:W("image"),data:Qg,mimeType:P(),annotations:vr.optional(),_meta:ze(P(),We()).optional()}),im=D({type:W("audio"),data:Qg,mimeType:P(),annotations:vr.optional(),_meta:ze(P(),We()).optional()}),k1=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),q1=D({type:W("resource"),resource:$e([mS,fS]),annotations:vr.optional(),_meta:ze(P(),We()).optional()}),_1=wS.extend({type:W("resource_link")}),nm=$e([Xg,em,im,_1,q1]),H1=D({role:Fs,content:nm}),R1=yi.extend({description:P().optional(),messages:ge(H1)}),I1=cn.extend({method:W("notifications/prompts/list_changed"),params:un.optional()}),z1=D({title:P().optional(),readOnlyHint:hi().optional(),destructiveHint:hi().optional(),idempotentHint:hi().optional(),openWorldHint:hi().optional()}),D1=D({taskSupport:$i(["required","optional","forbidden"]).optional()}),vS=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:z1.optional(),execution:D1.optional(),_meta:ze(P(),We()).optional()}),xu=Us.extend({method:W("tools/list")}),G1=Ls.extend({tools:ge(vS)}),Tu=yi.extend({content:ge(nm).default([]),structuredContent:ze(P(),We()).optional(),isError:hi().optional()}),oie=Tu.or(yi.extend({toolResult:We()})),$1=Gs.extend({name:P(),arguments:ze(P(),We()).optional()}),Cr=bi.extend({method:W("tools/call"),params:$1}),N1=cn.extend({method:W("notifications/tools/list_changed"),params:un.optional()}),lie=D({autoRefresh:hi().default(!0),debounceMs:Te().int().nonnegative().default(300)}),Vs=$i(["debug","info","notice","warning","error","critical","alert","emergency"]),U1=nn.extend({level:Vs}),tm=bi.extend({method:W("logging/setLevel"),params:U1}),L1=un.extend({level:Vs,logger:P().optional(),data:We()}),W1=cn.extend({method:W("notifications/message"),params:L1}),B1=D({name:P().optional()}),F1=D({hints:ge(B1).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),V1=D({mode:$i(["auto","required","none"]).optional()}),J1=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(nm).default([]),structuredContent:D({}).loose().optional(),isError:hi().optional(),_meta:ze(P(),We()).optional()}),Z1=Ng("type",[Xg,em,im]),uu=Ng("type",[Xg,em,im,k1,J1]),K1=D({role:Fs,content:$e([uu,ge(uu)]),_meta:ze(P(),We()).optional()}),Q1=Gs.extend({messages:ge(K1),modelPreferences:F1.optional(),systemPrompt:P().optional(),includeContext:$i(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:si.optional(),tools:ge(vS).optional(),toolChoice:V1.optional()}),Y1=bi.extend({method:W("sampling/createMessage"),params:Q1}),Js=yi.extend({model:P(),stopReason:Be($i(["endTurn","stopSequence","maxTokens"]).or(P())),role:Fs,content:Z1}),am=yi.extend({model:P(),stopReason:Be($i(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Fs,content:$e([uu,ge(uu)])}),X1=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:hi().optional()}),e$=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:$i(["email","uri","date","date-time"]).optional(),default:P().optional()}),i$=D({type:$i(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),n$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),t$=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),a$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),r$=$e([n$,t$]),s$=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()}),o$=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()}),l$=$e([s$,o$]),u$=$e([a$,r$,l$]),c$=$e([u$,X1,e$,i$]),p$=Gs.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),c$),required:ge(P()).optional()})}),d$=Gs.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),h$=$e([p$,d$]),g$=bi.extend({method:W("elicitation/create"),params:h$}),m$=un.extend({elicitationId:P()}),f$=cn.extend({method:W("notifications/elicitation/complete"),params:m$}),Ar=yi.extend({action:$i(["accept","decline","cancel"]),content:Ug(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),hi(),ge(P())])).optional())}),w$=D({type:W("ref/resource"),uri:P()});var v$=D({type:W("ref/prompt"),name:P()}),C$=nn.extend({ref:$e([v$,w$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Mu=bi.extend({method:W("completion/complete"),params:C$});function CS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function AS(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var A$=yi.extend({completion:_i({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(hi())})}),b$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),y$=bi.extend({method:W("roots/list"),params:nn.optional()}),rm=yi.extend({roots:ge(b$)}),P$=cn.extend({method:W("notifications/roots/list_changed"),params:un.optional()}),uie=$e([gu,Zg,Mu,tm,Ou,Su,yu,Pu,ju,y1,j1,Cr,xu,fu,vu,Cu,bu]),cie=$e([hu,mu,Kg,P$,Bs]),pie=$e([du,Js,am,Ar,rm,wu,Au,wr]),die=$e([gu,Y1,g$,y$,fu,vu,Cu,bu]),hie=$e([hu,mu,W1,O1,A1,N1,I1,Bs,f$]),gie=$e([du,u1,A$,R1,M1,f1,w1,C1,Tu,G1,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 Lg(a.elicitations,i)}return new t(e,i,n)}},Lg=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 yS=Symbol("Let zodToJsonSchema decide on which parser to use");var bS={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"},PS=t=>typeof t=="string"?{...bS,name:t}:{...bS,...t};var jS=t=>{let e=PS(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 sm(t,e,i,n){n?.errorMessages&&i&&(t.errorMessage={...t.errorMessage,[e]:i})}function me(t,e,i,n,a){t[e]=i,sm(t,e,n,a)}var Eu=(t,e)=>{let i=0;for(;iY(t.innerType._def,e);function om(t,e,i){let n=i??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,r)=>om(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 j$(t,e)}}var j$=(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 MS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function ES(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function kS(t){return{type:"string",enum:Array.from(t.values)}}var S$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function qS(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(S$(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 _S(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 lm,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:()=>(lm===void 0&&(lm=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),lm),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":Hi(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":Hi(i,n.regex,n.message,e);break;case"cuid":Hi(i,An.cuid,n.message,e);break;case"cuid2":Hi(i,An.cuid2,n.message,e);break;case"startsWith":Hi(i,RegExp(`^${um(n.value,e)}`),n.message,e);break;case"endsWith":Hi(i,RegExp(`${um(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":{Hi(i,RegExp(um(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":Hi(i,An.base64url,n.message,e);break;case"jwt":Hi(i,An.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&Hi(i,An.ipv4Cidr,n.message,e),n.version!=="v4"&&Hi(i,An.ipv6Cidr,n.message,e);break}case"emoji":Hi(i,An.emoji(),n.message,e);break;case"ulid":{Hi(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":{Hi(i,An.base64,n.message,e);break}}break}case"nanoid":Hi(i,An.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return i}function um(t,e){return e.patternStrategy==="escape"?x$(t):t}var O$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function x$(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 Hi(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:HS(e,n),...i&&n.errorMessages&&{errorMessage:{pattern:i}}})):me(t,"pattern",HS(e,n),i,n)}function HS(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 Gs(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:Rs(e,"input",t.processors),output:Rs(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function qi(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 qi(n.element,i);if(n.type==="set")return qi(n.valueType,i);if(n.type==="lazy")return qi(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 qi(n.innerType,i);if(n.type==="intersection")return qi(n.left,i)||qi(n.right,i);if(n.type==="record"||n.type==="map")return qi(n.keyType,i)||qi(n.valueType,i);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:qi(n.in,i)||qi(n.out,i);if(n.type==="object"){for(let a in n.shape)if(qi(n.shape[a],i))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(qi(a,i))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(qi(a,i))return!0;return!!(n.rest&&qi(n.rest,i))}return!1}var gj=(t,e={})=>i=>{let n=zs({...i,processors:e});return qe(t,n),Ds(n,t),Gs(n,t)},Rs=(t,e,i={})=>n=>{let{libraryOptions:a,target:r}=n??{},s=zs({...a??{},target:r,io:e,processors:i});return qe(t,s),Ds(s,t),Gs(s,t)};var xD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},vg=(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=xD[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)},Ag=(t,e,i,n)=>{i.type="boolean"},fj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},wj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},bg=(t,e,i,n)=>{e.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},vj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Cj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},yg=(t,e,i,n)=>{i.not={}},Aj=(t,e,i,n)=>{},Pg=(t,e,i,n)=>{},bj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},jg=(t,e,i,n)=>{let a=t._zod.def,r=ys(a.entries);r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),i.enum=r},Sg=(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},yj=(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},jj=(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)},Sj=(t,e,i,n)=>{i.type="boolean"},Og=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Oj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},xg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Tj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Tg=(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"]})},Mg=(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)},Eg=(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},kg=(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)},qg=(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)}},_g=(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"}]},Hg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Ig=(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))},Rg=(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)))},zg=(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},Dg=(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},Gg=(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},Ej=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},uu=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},kj=(t,e,i,n)=>{let a=t._zod.innerType;qe(a,e,n);let r=e.seen.get(t);r.ref=a},mj={string:vg,number:Cg,boolean:Ag,bigint:fj,symbol:wj,null:bg,undefined:vj,void:Cj,never:yg,any:Aj,unknown:Pg,date:bj,enum:jg,literal:Sg,nan:yj,template_literal:Pj,file:jj,success:Sj,custom:Og,function:Oj,transform:xg,map:xj,set:Tj,array:Tg,object:Mg,union:Eg,intersection:kg,tuple:Mj,record:qg,nullable:_g,nonoptional:Hg,default:Ig,prefault:Rg,catch:zg,pipe:Dg,readonly:Gg,promise:Ej,optional:uu,lazy:kj};function $g(t,e){if("_idmap"in t){let n=t,a=zs({...e,processors:mj}),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;Ds(a,c),s[u]=Gs(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=zs({...e,processors:mj});return qe(t,i),Ds(i,t),Gs(i,t)}var f1=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)=>Jl(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>fa(t,i,n),t.parseAsync=async(i,n)=>Zl(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>wa(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)=>Xi(t,i,n),t.brand=()=>t,t.register=((i,n)=>(i.add(t,n),t)),t.apply=i=>i(t)});var w1=j("ZodMiniObject",(t,e)=>{gh.init(t,e),f1.init(t,e),Oe(t,"shape",()=>e.shape)});function Ng(t,e){let i={type:"object",shape:t??{},...J(e)};return new w1(i)}function ln(t){return!!t._zod}function Aa(t){let e=Object.values(t);if(e.length===0)return Ng({});let i=e.every(ln),n=e.every(a=>!ln(a));if(i)return Ng(t);if(n)return Sd(t);throw new Error("Mixed Zod versions detected in object shape.")}function St(t,e){return ln(t)?fa(t,e):t.safeParse(e)}async function cu(t,e){return ln(t)?await wa(t,e):await t.safeParseAsync(e)}function Ot(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 wr(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 Aa(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 pu(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 _j(t){return t.description}function Hj(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 du(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 $s={};bd($s,{ZodISODate:()=>Rj,ZodISODateTime:()=>Ij,ZodISODuration:()=>Dj,ZodISOTime:()=>zj,date:()=>Lg,datetime:()=>Ug,duration:()=>Bg,time:()=>Wg});var Ij=j("ZodISODateTime",(t,e)=>{YP.init(t,e),Le.init(t,e)});function Ug(t){return uj(Ij,t)}var Rj=j("ZodISODate",(t,e)=>{XP.init(t,e),Le.init(t,e)});function Lg(t){return cj(Rj,t)}var zj=j("ZodISOTime",(t,e)=>{ej.init(t,e),Le.init(t,e)});function Wg(t){return pj(zj,t)}var Dj=j("ZodISODuration",(t,e)=>{ij.init(t,e),Le.init(t,e)});function Bg(t){return dj(Dj,t)}var S1=(t,e)=>{Vl.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>Fy(t,i)},flatten:{value:i=>By(t,i)},addIssue:{value:i=>{t.issues.push(i),t.message=JSON.stringify(t.issues,hr,2)}},addIssues:{value:i=>{t.issues.push(...i),t.message=JSON.stringify(t.issues,hr,2)}},isEmpty:{get(){return t.issues.length===0}}})};var en=j("ZodError",S1,{Parent:Error});var Gj=xs(en),$j=Ts(en),Nj=Ms(en),Uj=Es(en),Lj=Vy(en),Wj=Jy(en),Bj=Zy(en),Fj=Ky(en),Vj=Qy(en),Jj=Yy(en),Zj=Xy(en),Kj=eP(en);var Qj=new WeakMap;function Ns(t,e,i){let n=Object.getPrototypeOf(t),a=Qj.get(n);if(a||(a=new Set,Qj.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:Rs(t,"input"),output:Rs(t,"output")}}),t.toJSONSchema=gj(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(i,n)=>Gj(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>Nj(t,i,n),t.parseAsync=async(i,n)=>$j(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>Uj(t,i,n),t.spa=t.safeParseAsync,t.encode=(i,n)=>Lj(t,i,n),t.decode=(i,n)=>Wj(t,i,n),t.encodeAsync=async(i,n)=>Bj(t,i,n),t.decodeAsync=async(i,n)=>Fj(t,i,n),t.safeEncode=(i,n)=>Vj(t,i,n),t.safeDecode=(i,n)=>Jj(t,i,n),t.safeEncodeAsync=async(i,n)=>Zj(t,i,n),t.safeDecodeAsync=async(i,n)=>Kj(t,i,n),Ns(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 Xi(this,i,n)},brand(){return this},register(i,n){return i.add(this,n),this},refine(i,n){return this.check(mG(i,n))},superRefine(i,n){return this.check(fG(i,n))},overwrite(i){return this.check(jt(i))},optional(){return Be(this)},exactOptional(){return tG(this)},nullable(){return iS(this)},nullish(){return Be(iS(this))},nonoptional(i){return uG(this,i)},array(){return ge(this)},or(i){return $e([this,i])},and(i){return gu(this,i)},transform(i){return nS(this,lS(i))},default(i){return sG(this,i)},prefault(i){return lG(this,i)},catch(i){return pG(this,i)},pipe(i){return nS(this,i)},readonly(){return gG(this)},describe(i){let n=this.clone();return va.add(n,{description:i}),n},meta(...i){if(i.length===0)return va.get(this);let n=this.clone();return va.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 va.get(t)?.description},configurable:!0}),t)),tS=j("_ZodString",(t,e)=>{_s.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>vg(t,n,a,r);let i=t._zod.bag;t.format=i.format??null,t.minLength=i.minimum??null,t.maxLength=i.maximum??null,Ns(t,"_ZodString",{regex(...n){return this.check(ag(...n))},includes(...n){return this.check(og(...n))},startsWith(...n){return this.check(lg(...n))},endsWith(...n){return this.check(ug(...n))},min(...n){return this.check(fr(...n))},max(...n){return this.check(ou(...n))},length(...n){return this.check(lu(...n))},nonempty(...n){return this.check(fr(1,...n))},lowercase(n){return this.check(rg(n))},uppercase(n){return this.check(sg(n))},trim(){return this.check(pg())},normalize(...n){return this.check(cg(...n))},toLowerCase(){return this.check(dg())},toUpperCase(){return this.check(hg())},slugify(){return this.check(gg())}})}),x1=j("ZodString",(t,e)=>{_s.init(t,e),tS.init(t,e),t.email=i=>t.check(kh(T1,i)),t.url=i=>t.check(Rh(M1,i)),t.jwt=i=>t.check(Qh(W1,i)),t.emoji=i=>t.check(zh(E1,i)),t.guid=i=>t.check(tu(Yj,i)),t.uuid=i=>t.check(qh(hu,i)),t.uuidv4=i=>t.check(_h(hu,i)),t.uuidv6=i=>t.check(Hh(hu,i)),t.uuidv7=i=>t.check(Ih(hu,i)),t.nanoid=i=>t.check(Dh(k1,i)),t.guid=i=>t.check(tu(Yj,i)),t.cuid=i=>t.check(Gh(q1,i)),t.cuid2=i=>t.check($h(_1,i)),t.ulid=i=>t.check(Nh(H1,i)),t.base64=i=>t.check(Jh(N1,i)),t.base64url=i=>t.check(Zh(U1,i)),t.xid=i=>t.check(Uh(I1,i)),t.ksuid=i=>t.check(Lh(R1,i)),t.ipv4=i=>t.check(Wh(z1,i)),t.ipv6=i=>t.check(Bh(D1,i)),t.cidrv4=i=>t.check(Fh(G1,i)),t.cidrv6=i=>t.check(Vh($1,i)),t.e164=i=>t.check(Kh(L1,i)),t.datetime=i=>t.check(Ug(i)),t.date=i=>t.check(Lg(i)),t.time=i=>t.check(Wg(i)),t.duration=i=>t.check(Bg(i))});function P(t){return Eh(x1,t)}var Le=j("ZodStringFormat",(t,e)=>{Re.init(t,e),tS.init(t,e)}),T1=j("ZodEmail",(t,e)=>{Bd.init(t,e),Le.init(t,e)});var Yj=j("ZodGUID",(t,e)=>{Ld.init(t,e),Le.init(t,e)});var hu=j("ZodUUID",(t,e)=>{Wd.init(t,e),Le.init(t,e)});var M1=j("ZodURL",(t,e)=>{Fd.init(t,e),Le.init(t,e)});var E1=j("ZodEmoji",(t,e)=>{Vd.init(t,e),Le.init(t,e)});var k1=j("ZodNanoID",(t,e)=>{Jd.init(t,e),Le.init(t,e)});var q1=j("ZodCUID",(t,e)=>{Zd.init(t,e),Le.init(t,e)});var _1=j("ZodCUID2",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var H1=j("ZodULID",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var I1=j("ZodXID",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var R1=j("ZodKSUID",(t,e)=>{Xd.init(t,e),Le.init(t,e)});var z1=j("ZodIPv4",(t,e)=>{eh.init(t,e),Le.init(t,e)});var D1=j("ZodIPv6",(t,e)=>{ih.init(t,e),Le.init(t,e)});var G1=j("ZodCIDRv4",(t,e)=>{nh.init(t,e),Le.init(t,e)});var $1=j("ZodCIDRv6",(t,e)=>{th.init(t,e),Le.init(t,e)});var N1=j("ZodBase64",(t,e)=>{ah.init(t,e),Le.init(t,e)});var U1=j("ZodBase64URL",(t,e)=>{rh.init(t,e),Le.init(t,e)});var L1=j("ZodE164",(t,e)=>{sh.init(t,e),Le.init(t,e)});var W1=j("ZodJWT",(t,e)=>{oh.init(t,e),Le.init(t,e)});var aS=j("ZodNumber",(t,e)=>{Xl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>Cg(t,n,a,r),Ns(t,"ZodNumber",{gt(n,a){return this.check(ru(n,a))},gte(n,a){return this.check(Is(n,a))},min(n,a){return this.check(Is(n,a))},lt(n,a){return this.check(au(n,a))},lte(n,a){return this.check(Hs(n,a))},max(n,a){return this.check(Hs(n,a))},int(n){return this.check(Xj(n))},safe(n){return this.check(Xj(n))},positive(n){return this.check(ru(0,n))},nonnegative(n){return this.check(Is(0,n))},negative(n){return this.check(au(0,n))},nonpositive(n){return this.check(Hs(0,n))},multipleOf(n,a){return this.check(su(n,a))},step(n,a){return this.check(su(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 Yh(aS,t)}var B1=j("ZodNumberFormat",(t,e)=>{lh.init(t,e),aS.init(t,e)});function Xj(t){return Xh(B1,t)}var F1=j("ZodBoolean",(t,e)=>{uh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ag(t,i,n,a)});function gi(t){return eg(F1,t)}var V1=j("ZodNull",(t,e)=>{ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>bg(t,i,n,a)});function rS(t){return ig(V1,t)}var J1=j("ZodUnknown",(t,e)=>{ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Pg(t,i,n,a)});function We(){return ng(J1)}var Z1=j("ZodNever",(t,e)=>{dh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>yg(t,i,n,a)});function K1(t){return tg(Z1,t)}var Q1=j("ZodArray",(t,e)=>{hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Tg(t,i,n,a),t.element=e.element,Ns(t,"ZodArray",{min(i,n){return this.check(fr(i,n))},nonempty(i){return this.check(fr(1,i))},max(i,n){return this.check(ou(i,n))},length(i,n){return this.check(lu(i,n))},unwrap(){return this.element}})});function ge(t,e){return hj(Q1,t,e)}var sS=j("ZodObject",(t,e)=>{rj.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Mg(t,i,n,a),he.defineLazy(t,"shape",()=>e.shape),Ns(t,"ZodObject",{keyof(){return $i(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:K1()})},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(mu,this,i[0])},required(...i){return he.required(uS,this,i[0])}})});function D(t,e){let i={type:"object",shape:t??{},...he.normalizeParams(e)};return new sS(i)}function _i(t,e){return new sS({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var oS=j("ZodUnion",(t,e)=>{eu.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Eg(t,i,n,a),t.options=e.options});function $e(t,e){return new oS({type:"union",options:t,...he.normalizeParams(e)})}var Y1=j("ZodDiscriminatedUnion",(t,e)=>{oS.init(t,e),mh.init(t,e)});function Vg(t,e,i){return new Y1({type:"union",options:e,discriminator:t,...he.normalizeParams(i)})}var X1=j("ZodIntersection",(t,e)=>{fh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>kg(t,i,n,a)});function gu(t,e){return new X1({type:"intersection",left:t,right:e})}var eS=j("ZodRecord",(t,e)=>{wh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>qg(t,i,n,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,i){return!e||!e._zod?new eS({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new eS({type:"record",keyType:t,valueType:e,...he.normalizeParams(i)})}var Fg=j("ZodEnum",(t,e)=>{vh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>jg(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 Fg({...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 Fg({...e,checks:[],...he.normalizeParams(a),entries:r})}});function $i(t,e){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Fg({type:"enum",entries:i,...he.normalizeParams(e)})}var eG=j("ZodLiteral",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Sg(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 iG=j("ZodTransform",(t,e)=>{Ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>xg(t,i,n,a),t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new pr(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 lS(t){return new iG({type:"transform",transform:t})}var mu=j("ZodOptional",(t,e)=>{iu.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>uu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Be(t){return new mu({type:"optional",innerType:t})}var nG=j("ZodExactOptional",(t,e)=>{bh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>uu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function tG(t){return new nG({type:"optional",innerType:t})}var aG=j("ZodNullable",(t,e)=>{yh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>_g(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function iS(t){return new aG({type:"nullable",innerType:t})}var rG=j("ZodDefault",(t,e)=>{Ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ig(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function sG(t,e){return new rG({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var oG=j("ZodPrefault",(t,e)=>{jh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Rg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function lG(t,e){return new oG({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var uS=j("ZodNonOptional",(t,e)=>{Sh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Hg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function uG(t,e){return new uS({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var cG=j("ZodCatch",(t,e)=>{Oh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>zg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function pG(t,e){return new cG({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var cS=j("ZodPipe",(t,e)=>{nu.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Dg(t,i,n,a),t.in=e.in,t.out=e.out});function nS(t,e){return new cS({type:"pipe",in:t,out:e})}var dG=j("ZodPreprocess",(t,e)=>{cS.init(t,e),sj.init(t,e)}),hG=j("ZodReadonly",(t,e)=>{xh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Gg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function gG(t){return new hG({type:"readonly",innerType:t})}var pS=j("ZodCustom",(t,e)=>{Th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Og(t,i,n,a)});function dS(t,e){return mg(pS,t??(()=>!0),e)}function mG(t,e={}){return fg(pS,t,e)}function fG(t,e){return wg(t,e)}function Jg(t,e){return new dG({type:"pipe",in:lS(t),out:e})}Yi(oj());var Kg="2025-11-25";var hS=[Kg,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],xt="io.modelcontextprotocol/related-task",wu="2.0",oi=dS(t=>t!==null&&(typeof t=="object"||typeof t=="function")),gS=$e([P(),Te().int()]),mS=P(),Lie=_i({ttl:Te().optional(),pollInterval:Te().optional()}),wG=D({ttl:Te().optional()}),vG=D({taskId:P()}),Qg=_i({progressToken:gS.optional(),[xt]:vG.optional()}),nn=D({_meta:Qg.optional()}),Us=nn.extend({task:wG.optional()}),fS=t=>Us.safeParse(t).success,bi=D({method:P(),params:nn.loose().optional()}),un=D({_meta:Qg.optional()}),cn=D({method:P(),params:un.loose().optional()}),yi=_i({_meta:Qg.optional()}),vu=$e([P(),Te().int()]),wS=D({jsonrpc:W(wu),id:vu,...bi.shape}).strict(),Yg=t=>wS.safeParse(t).success,vS=D({jsonrpc:W(wu),...cn.shape}).strict(),CS=t=>vS.safeParse(t).success,Xg=D({jsonrpc:W(wu),id:vu,result:yi}).strict(),Ls=t=>Xg.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 em=D({jsonrpc:W(wu),id:vu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var AS=t=>em.safeParse(t).success;var bS=$e([wS,vS,Xg,em]),Wie=$e([Xg,em]),Cu=yi.strict(),CG=un.extend({requestId:vu.optional(),reason:P().optional()}),Au=cn.extend({method:W("notifications/cancelled"),params:CG}),AG=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:$i(["light","dark"]).optional()}),Ws=D({icons:ge(AG).optional()}),vr=D({name:P(),title:P().optional()}),yS=vr.extend({...vr.shape,...Ws.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),bG=gu(D({applyDefaults:gi().optional()}),ze(P(),We())),yG=Jg(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,gu(D({form:bG.optional(),url:oi.optional()}),ze(P(),We()).optional())),PG=_i({list:oi.optional(),cancel:oi.optional(),requests:_i({sampling:_i({createMessage:oi.optional()}).optional(),elicitation:_i({create:oi.optional()}).optional()}).optional()}),jG=_i({list:oi.optional(),cancel:oi.optional(),requests:_i({tools:_i({call:oi.optional()}).optional()}).optional()}),SG=D({experimental:ze(P(),oi).optional(),sampling:D({context:oi.optional(),tools:oi.optional()}).optional(),elicitation:yG.optional(),roots:D({listChanged:gi().optional()}).optional(),tasks:PG.optional(),extensions:ze(P(),oi).optional()}),OG=nn.extend({protocolVersion:P(),capabilities:SG,clientInfo:yS}),im=bi.extend({method:W("initialize"),params:OG});var xG=D({experimental:ze(P(),oi).optional(),logging:oi.optional(),completions:oi.optional(),prompts:D({listChanged:gi().optional()}).optional(),resources:D({subscribe:gi().optional(),listChanged:gi().optional()}).optional(),tools:D({listChanged:gi().optional()}).optional(),tasks:jG.optional(),extensions:ze(P(),oi).optional()}),TG=yi.extend({protocolVersion:P(),capabilities:xG,serverInfo:yS,instructions:P().optional()}),nm=cn.extend({method:W("notifications/initialized"),params:un.optional()});var bu=bi.extend({method:W("ping"),params:nn.optional()}),MG=D({progress:Te(),total:Be(Te()),message:Be(P())}),EG=D({...un.shape,...MG.shape,progressToken:gS}),yu=cn.extend({method:W("notifications/progress"),params:EG}),kG=nn.extend({cursor:mS.optional()}),Bs=bi.extend({params:kG.optional()}),Fs=yi.extend({nextCursor:mS.optional()}),qG=$i(["working","input_required","completed","failed","cancelled"]),Vs=D({taskId:P(),status:qG,ttl:$e([Te(),rS()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),Cr=yi.extend({task:Vs}),_G=un.merge(Vs),Js=cn.extend({method:W("notifications/tasks/status"),params:_G}),Pu=bi.extend({method:W("tasks/get"),params:nn.extend({taskId:P()})}),ju=yi.merge(Vs),Su=bi.extend({method:W("tasks/result"),params:nn.extend({taskId:P()})}),Bie=yi.loose(),Ou=Bs.extend({method:W("tasks/list")}),xu=Fs.extend({tasks:ge(Vs)}),Tu=bi.extend({method:W("tasks/cancel"),params:nn.extend({taskId:P()})}),PS=yi.merge(Vs),jS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),SS=jS.extend({text:P()}),tm=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),OS=jS.extend({blob:tm}),Zs=$i(["user","assistant"]),Ar=D({audience:ge(Zs).optional(),priority:Te().min(0).max(1).optional(),lastModified:$s.datetime({offset:!0}).optional()}),xS=D({...vr.shape,...Ws.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:Ar.optional(),_meta:Be(_i({}))}),HG=D({...vr.shape,...Ws.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:Ar.optional(),_meta:Be(_i({}))}),Mu=Bs.extend({method:W("resources/list")}),IG=Fs.extend({resources:ge(xS)}),Eu=Bs.extend({method:W("resources/templates/list")}),RG=Fs.extend({resourceTemplates:ge(HG)}),am=nn.extend({uri:P()}),zG=am,ku=bi.extend({method:W("resources/read"),params:zG}),DG=yi.extend({contents:ge($e([SS,OS]))}),GG=cn.extend({method:W("notifications/resources/list_changed"),params:un.optional()}),$G=am,NG=bi.extend({method:W("resources/subscribe"),params:$G}),UG=am,LG=bi.extend({method:W("resources/unsubscribe"),params:UG}),WG=un.extend({uri:P()}),BG=cn.extend({method:W("notifications/resources/updated"),params:WG}),FG=D({name:P(),description:Be(P()),required:Be(gi())}),VG=D({...vr.shape,...Ws.shape,description:Be(P()),arguments:Be(ge(FG)),_meta:Be(_i({}))}),qu=Bs.extend({method:W("prompts/list")}),JG=Fs.extend({prompts:ge(VG)}),ZG=nn.extend({name:P(),arguments:ze(P(),P()).optional()}),_u=bi.extend({method:W("prompts/get"),params:ZG}),rm=D({type:W("text"),text:P(),annotations:Ar.optional(),_meta:ze(P(),We()).optional()}),sm=D({type:W("image"),data:tm,mimeType:P(),annotations:Ar.optional(),_meta:ze(P(),We()).optional()}),om=D({type:W("audio"),data:tm,mimeType:P(),annotations:Ar.optional(),_meta:ze(P(),We()).optional()}),KG=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),QG=D({type:W("resource"),resource:$e([SS,OS]),annotations:Ar.optional(),_meta:ze(P(),We()).optional()}),YG=xS.extend({type:W("resource_link")}),lm=$e([rm,sm,om,YG,QG]),XG=D({role:Zs,content:lm}),e$=yi.extend({description:P().optional(),messages:ge(XG)}),i$=cn.extend({method:W("notifications/prompts/list_changed"),params:un.optional()}),n$=D({title:P().optional(),readOnlyHint:gi().optional(),destructiveHint:gi().optional(),idempotentHint:gi().optional(),openWorldHint:gi().optional()}),t$=D({taskSupport:$i(["required","optional","forbidden"]).optional()}),TS=D({...vr.shape,...Ws.shape,description:P().optional(),inputSchema:D({type:W("object"),properties:ze(P(),oi).optional(),required:ge(P()).optional()}).catchall(We()),outputSchema:D({type:W("object"),properties:ze(P(),oi).optional(),required:ge(P()).optional()}).catchall(We()).optional(),annotations:n$.optional(),execution:t$.optional(),_meta:ze(P(),We()).optional()}),Hu=Bs.extend({method:W("tools/list")}),a$=Fs.extend({tools:ge(TS)}),Iu=yi.extend({content:ge(lm).default([]),structuredContent:ze(P(),We()).optional(),isError:gi().optional()}),Fie=Iu.or(yi.extend({toolResult:We()})),r$=Us.extend({name:P(),arguments:ze(P(),We()).optional()}),br=bi.extend({method:W("tools/call"),params:r$}),s$=cn.extend({method:W("notifications/tools/list_changed"),params:un.optional()}),Vie=D({autoRefresh:gi().default(!0),debounceMs:Te().int().nonnegative().default(300)}),Ks=$i(["debug","info","notice","warning","error","critical","alert","emergency"]),o$=nn.extend({level:Ks}),um=bi.extend({method:W("logging/setLevel"),params:o$}),l$=un.extend({level:Ks,logger:P().optional(),data:We()}),u$=cn.extend({method:W("notifications/message"),params:l$}),c$=D({name:P().optional()}),p$=D({hints:ge(c$).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),d$=D({mode:$i(["auto","required","none"]).optional()}),h$=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(lm).default([]),structuredContent:D({}).loose().optional(),isError:gi().optional(),_meta:ze(P(),We()).optional()}),g$=Vg("type",[rm,sm,om]),fu=Vg("type",[rm,sm,om,KG,h$]),m$=D({role:Zs,content:$e([fu,ge(fu)]),_meta:ze(P(),We()).optional()}),f$=Us.extend({messages:ge(m$),modelPreferences:p$.optional(),systemPrompt:P().optional(),includeContext:$i(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:oi.optional(),tools:ge(TS).optional(),toolChoice:d$.optional()}),w$=bi.extend({method:W("sampling/createMessage"),params:f$}),Qs=yi.extend({model:P(),stopReason:Be($i(["endTurn","stopSequence","maxTokens"]).or(P())),role:Zs,content:g$}),cm=yi.extend({model:P(),stopReason:Be($i(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Zs,content:$e([fu,ge(fu)])}),v$=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:gi().optional()}),C$=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:$i(["email","uri","date","date-time"]).optional(),default:P().optional()}),A$=D({type:$i(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),b$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),y$=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),P$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),j$=$e([b$,y$]),S$=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()}),O$=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()}),x$=$e([S$,O$]),T$=$e([P$,j$,x$]),M$=$e([T$,v$,C$,A$]),E$=Us.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),M$),required:ge(P()).optional()})}),k$=Us.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),q$=$e([E$,k$]),_$=bi.extend({method:W("elicitation/create"),params:q$}),H$=un.extend({elicitationId:P()}),I$=cn.extend({method:W("notifications/elicitation/complete"),params:H$}),yr=yi.extend({action:$i(["accept","decline","cancel"]),content:Jg(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),gi(),ge(P())])).optional())}),R$=D({type:W("ref/resource"),uri:P()});var z$=D({type:W("ref/prompt"),name:P()}),D$=nn.extend({ref:$e([z$,R$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Ru=bi.extend({method:W("completion/complete"),params:D$});function MS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function ES(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var G$=yi.extend({completion:_i({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(gi())})}),$$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),N$=bi.extend({method:W("roots/list"),params:nn.optional()}),pm=yi.extend({roots:ge($$)}),U$=cn.extend({method:W("notifications/roots/list_changed"),params:un.optional()}),Jie=$e([bu,im,Ru,um,_u,qu,Mu,Eu,ku,NG,LG,br,Hu,Pu,Su,Ou,Tu]),Zie=$e([Au,yu,nm,U$,Js]),Kie=$e([Cu,Qs,cm,yr,pm,ju,xu,Cr]),Qie=$e([bu,w$,_$,N$,Pu,Su,Ou,Tu]),Yie=$e([Au,yu,u$,BG,GG,s$,i$,Js,I$]),Xie=$e([Cu,TG,G$,e$,JG,IG,RG,DG,Iu,a$,ju,xu,Cr]),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 Zg(a.elicitations,i)}return new t(e,i,n)}},Zg=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 Tt(t){return t==="completed"||t==="failed"||t==="cancelled"}var qS=Symbol("Let zodToJsonSchema decide on which parser to use");var kS={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},_S=t=>typeof t=="string"?{...kS,name:t}:{...kS,...t};var HS=t=>{let e=_S(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 dm(t,e,i,n){n?.errorMessages&&i&&(t.errorMessage={...t.errorMessage,[e]:i})}function me(t,e,i,n,a){t[e]=i,dm(t,e,n,a)}var zu=(t,e)=>{let i=0;for(;iY(t.innerType._def,e);function hm(t,e,i){let n=i??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,r)=>hm(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 L$(t,e)}}var L$=(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 GS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function $S(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function NS(t){return{type:"string",enum:Array.from(t.values)}}var W$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function US(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(W$(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 LS(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 gm,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:()=>(gm===void 0&&(gm=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),gm),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 Gu(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":Hi(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":Hi(i,n.regex,n.message,e);break;case"cuid":Hi(i,An.cuid,n.message,e);break;case"cuid2":Hi(i,An.cuid2,n.message,e);break;case"startsWith":Hi(i,RegExp(`^${mm(n.value,e)}`),n.message,e);break;case"endsWith":Hi(i,RegExp(`${mm(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":{Hi(i,RegExp(mm(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":Hi(i,An.base64url,n.message,e);break;case"jwt":Hi(i,An.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&Hi(i,An.ipv4Cidr,n.message,e),n.version!=="v4"&&Hi(i,An.ipv6Cidr,n.message,e);break}case"emoji":Hi(i,An.emoji(),n.message,e);break;case"ulid":{Hi(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":{Hi(i,An.base64,n.message,e);break}}break}case"nanoid":Hi(i,An.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return i}function mm(t,e){return e.patternStrategy==="escape"?F$(t):t}var B$=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 Hi(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:WS(e,n),...i&&n.errorMessages&&{errorMessage:{pattern:i}}})):me(t,"pattern",WS(e,n),i,n)}function WS(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 RS(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 IS(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 zS(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function DS(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Zs={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function $S(t,e){if(e.target==="openApi3")return GS(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 GS(t,e)}var GS=(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 NS(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 US(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",sm(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 LS(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=M$(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=T$(t,e);return s!==void 0&&(n.additionalProperties=s),n}function T$(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 M$(t){try{return t.isOptional()}catch{return!0}}var WS=(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 BS=(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 FS(t,e){return Y(t.type._def,e)}function VS(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 JS(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 ZS(t){return{not:Ve(t)}}function KS(t){return Ve(t)}var QS=(t,e)=>Y(t.innerType._def,e);var YS=(t,e,i)=>{switch(e){case E.ZodString:return qu(t,i);case E.ZodNumber:return US(t,i);case E.ZodObject:return LS(t,i);case E.ZodBigInt:return OS(t,i);case E.ZodBoolean:return xS();case E.ZodDate:return om(t,i);case E.ZodUndefined:return ZS(i);case E.ZodNull:return DS(i);case E.ZodArray:return SS(t,i);case E.ZodUnion:case E.ZodDiscriminatedUnion:return $S(t,i);case E.ZodIntersection:return qS(t,i);case E.ZodTuple:return JS(t,i);case E.ZodRecord:return _u(t,i);case E.ZodLiteral:return _S(t,i);case E.ZodEnum:return kS(t);case E.ZodNativeEnum:return IS(t);case E.ZodNullable:return NS(t,i);case E.ZodOptional:return WS(t,i);case E.ZodMap:return RS(t,i);case E.ZodSet:return VS(t,i);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return FS(t,i);case E.ZodNaN:case E.ZodNever:return zS(i);case E.ZodEffects:return ES(t,i);case E.ZodAny:return Ve(i);case E.ZodUnknown:return KS(i);case E.ZodDefault:return MS(t,i);case E.ZodBranded:return ku(t,i);case E.ZodReadonly:return QS(t,i);case E.ZodCatch:return TS(t,i);case E.ZodPipeline:return BS(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!==yS)return o}if(n&&!i){let o=E$(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=YS(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&k$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var E$=(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}},k$=(t,e,i)=>(t.description&&(i.description=t.description,e.markdownDescription&&(i.markdownDescription=t.description)),i);var cm=(t,e)=>{let i=jS(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 q$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function pm(t,e){return ln(t)?Hg(t,{target:q$(e?.target),io:e?.pipeStrategy??"input"}):cm(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function dm(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 hm(t,e){let i=Pt(t,e);if(!i.success)throw i.error;return i.data}var _$=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)||cS(r)?this._onresponse(r):Fg(r)?this._onrequest(r,s):uS(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=sS(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,u={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(c,p)},sendRequest:async(c,p,d)=>{if(s.signal.aborted)throw new L(V.ConnectionClosed,"Request was cancelled");let h={...d,relatedRequestId:e.id};r&&!h.relatedTask&&(h.relatedTask={taskId:r});let g=h.relatedTask?.taskId??r;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(c,p,h)},authInfo: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??_$,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},hS,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=dm(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(a,r)=>{let s=hm(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=dm(e);this._notificationHandlers.set(n,a=>{let r=hm(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"&&Fg(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 XS(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function eO(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];XS(s)&&XS(r)?i[a]={...s,...r}:i[a]=r}return i}var BT=er(ew(),1),FT=er(WT(),1);function IF(){let t=new BT.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,FT.default)(t),t}var mc=class{constructor(e){this._ajv=e??IF()}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 VT(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 JT(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(Kg,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(tm,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=eO(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){JT(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&VT(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:tS.includes(i)?i:Wg,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},am,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},rm,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 KT=Symbol.for("mcp.completable");function lw(t){return!!t&&typeof t=="object"&&KT in t}function QT(t){return t[KT]?.complete}var ZT;(function(t){t.Completable="McpCompletable"})(ZT||(ZT={}));var zF=/^[A-Za-z0-9._-]{1,128}$/;function DF(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"),!zF.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 GF(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 uw(t){let e=DF(t);return GF(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?pm(a,{strictUnions:!0,pipeStrategy:"input"}):$F})(),annotations:i.annotations,execution:i.execution,_meta:i._meta};if(i.outputSchema){let a=mr(i.outputSchema);a&&(n.outputSchema=pm(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 CS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return AS(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(!lw(r))return Oo;let s=QT(r);if(!s)return Oo;let o=await s(e.params.argument.value,e.params.context);return XT(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 XT(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?NF(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:va(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=va(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 lw(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,i,n,a,r,s,o,l,u){uw(e);let c={title:i,description:n,inputSchema:YT(a),outputSchema:YT(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"&&uw(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=va(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=va(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(cw(l))a=i.shift(),i.length>1&&typeof i[0]=="object"&&i[0]!==null&&!cw(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 $F={type:"object",properties:{}};function eM(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function iM(t){return"_def"in t||"_zod"in t||eM(t)}function cw(t){return typeof t!="object"||t===null||iM(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(eM)}function YT(t){if(t){if(cw(t))return va(t);if(!iM(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function NF(t){let e=jt(t);return e?Object.entries(e).map(([i,n])=>{let a=Pj(n),r=jj(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 XT(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Oo={completion:{values:[],hasMore:!1}};var pw=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),UF(i)}clear(){this._buffer=void 0}};function UF(t){return pS.parse(JSON.parse(t))}function nM(t){return JSON.stringify(t)+` -`}var bc=class{constructor(e=pw.default.stdin,i=pw.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=nM(e);this._stdout.write(n)?i():this._stdout.once("drain",i)})}};var dd=er(oI());var uI=require("node:child_process"),cI=er(require("node:fs")),sy=er(require("node:path"));var lI=12e4,pI=t=>({config:{description:`Deploys a Genesys Cloud Architect flow from a TypeScript file. The file must export an async buildFlow(scripting) function that creates and saves the flow using the Architect Scripting SDK. The project's package.json must have "type": "module" for the ES module import to work.`,annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:{flowFile:Ai.string().min(1).describe("Path to the TypeScript flow file")}},handler:async({flowFile:e})=>{let i=sy.default.resolve(e);if(!cI.default.existsSync(i))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${i}`}]};let n=[t.deployScriptPath,"--flow-file",i];return new Promise(a=>{let r=[],s,o=!1,l=h=>{o||(o=!0,clearTimeout(c),a(h))},u=(0,uI.spawn)("node",n,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:sy.default.dirname(i),stdio:["ignore","pipe","pipe"]}),c=setTimeout(()=>{u.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${lI/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}=Gu(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}=Du(t.keyType._def,e);return{...i,propertyNames:a}}}return i}function BS(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 FS(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 VS(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function JS(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Ys={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function KS(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 Ys&&(!n._def.checks||!n._def.checks.length))){let n=i.reduce((a,r)=>{let s=Ys[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 QS(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:Ys[t.innerType._def.typeName],nullable:!0}:{type:[Ys[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 YS(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",dm(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 XS(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=V$(t,e);return s!==void 0&&(n.additionalProperties=s),n}function V$(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 eO=(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 iO=(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 nO(t,e){return Y(t.type._def,e)}function tO(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 aO(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 rO(t){return{not:Ve(t)}}function sO(t){return Ve(t)}var oO=(t,e)=>Y(t.innerType._def,e);var lO=(t,e,i)=>{switch(e){case E.ZodString:return Gu(t,i);case E.ZodNumber:return YS(t,i);case E.ZodObject:return XS(t,i);case E.ZodBigInt:return RS(t,i);case E.ZodBoolean:return zS();case E.ZodDate:return hm(t,i);case E.ZodUndefined:return rO(i);case E.ZodNull:return JS(i);case E.ZodArray:return IS(t,i);case E.ZodUnion:case E.ZodDiscriminatedUnion:return KS(t,i);case E.ZodIntersection:return US(t,i);case E.ZodTuple:return aO(t,i);case E.ZodRecord:return $u(t,i);case E.ZodLiteral:return LS(t,i);case E.ZodEnum:return NS(t);case E.ZodNativeEnum:return FS(t);case E.ZodNullable:return QS(t,i);case E.ZodOptional:return eO(t,i);case E.ZodMap:return BS(t,i);case E.ZodSet:return tO(t,i);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return nO(t,i);case E.ZodNaN:case E.ZodNever:return VS(i);case E.ZodEffects:return $S(t,i);case E.ZodAny:return Ve(i);case E.ZodUnknown:return sO(i);case E.ZodDefault:return GS(t,i);case E.ZodBranded:return Du(t,i);case E.ZodReadonly:return oO(t,i);case E.ZodCatch:return DS(t,i);case E.ZodPipeline:return iO(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!==qS)return o}if(n&&!i){let o=Z$(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=lO(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&K$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var Z$=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:zu(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}},K$=(t,e,i)=>(t.description&&(i.description=t.description,e.markdownDescription&&(i.markdownDescription=t.description)),i);var fm=(t,e)=>{let i=HS(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 Q$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function wm(t,e){return ln(t)?$g(t,{target:Q$(e?.target),io:e?.pipeStrategy??"input"}):fm(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function vm(t){let i=Ot(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=du(i);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function Cm(t,e){let i=St(t,e);if(!i.success)throw i.error;return i.data}var Y$=6e4,Nu=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(Au,i=>{this._oncancel(i)}),this.setNotificationHandler(yu,i=>{this._onprogress(i)}),this.setRequestHandler(bu,i=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Pu,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(Su,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(!Tt(s.status))return await this._waitForTaskUpdate(r,n.signal),await a();if(Tt(s.status)){let o=await this._taskStore.getTaskResult(r,n.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[xt]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(Ou,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(Tu,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(Tt(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),Ls(r)||AS(r)?this._onresponse(r):Yg(r)?this._onrequest(r,s):CS(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?.[xt]?.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=fS(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),Ls(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(Ls(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),Ls(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,Cr,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},Tt(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||{},[xt]: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=St(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},ju,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},xu,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||{},[xt]: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||{},[xt]: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||{},[xt]:i.relatedTask}}}),await this._transport.send(s,i)}setRequestHandler(e,i){let n=vm(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=vm(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"&&Yg(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=Js.parse({method:"notifications/tasks/status",params:o});await this.notification(l),Tt(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(Tt(o.status))throw new L(V.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(a,r,s,i);let l=await n.getTask(a,i);if(l){let u=Js.parse({method:"notifications/tasks/status",params:l});await this.notification(u),Tt(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>n.listTasks(a,i)}}};function uO(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function cO(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];uO(s)&&uO(r)?i[a]={...s,...r}:i[a]=r}return i}var iM=nr(sw(),1),nM=nr(eM(),1);function iV(){let t=new iM.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,nM.default)(t),t}var yc=class{constructor(e){this._ajv=e??iV()}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 Pc=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},Qs,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},yr,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 tM(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 aM(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 jc=class extends Nu{constructor(e,i){super(i),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Ks.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(nm,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(um,async(n,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=n.params,o=Ks.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new Pc(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=cO(this._capabilities,e)}setRequestHandler(e,i){let a=Ot(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=St(br,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=St(Cr,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=St(Iu,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){aM(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&tM(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:hS.includes(i)?i:Kg,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"},Cu)}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},cm,i):this.request({method:"sampling/createMessage",params:e},Qs,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},yr,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},yr,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},pm,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 sM=Symbol.for("mcp.completable");function gw(t){return!!t&&typeof t=="object"&&sM in t}function oM(t){return t[sM]?.complete}var rM;(function(t){t.Completable="McpCompletable"})(rM||(rM={}));var nV=/^[A-Za-z0-9._-]{1,128}$/;function tV(t){let e=[];if(t.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(t.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${t.length})`]};if(t.includes(" ")&&e.push("Tool name contains spaces, which may cause parsing issues"),t.includes(",")&&e.push("Tool name contains commas, which may cause parsing issues"),(t.startsWith("-")||t.endsWith("-"))&&e.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(t.startsWith(".")||t.endsWith("."))&&e.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!nV.test(t)){let 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 aV(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 mw(t){let e=tV(t);return aV(t,e.warnings),e.isValid}var Sc=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 Oc=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 jc(e,i)}get experimental(){return this._experimental||(this._experimental={tasks:new Sc(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(zt(Hu)),this.server.assertCanSetRequestHandler(zt(br)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Hu,()=>({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=wr(i.inputSchema);return a?wm(a,{strictUnions:!0,pipeStrategy:"input"}):rV})(),annotations:i.annotations,execution:i.execution,_meta:i._meta};if(i.outputSchema){let a=wr(i.outputSchema);a&&(n.outputSchema=wm(a,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(br,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=wr(e.inputSchema)??e.inputSchema,s=await cu(r,i);if(!s.success){let o="error"in s?s.error:"Unknown error",l=pu(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=wr(e.outputSchema),r=await cu(a,i.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=pu(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(zt(Ru)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Ru,async e=>{switch(e.params.ref.type){case"ref/prompt":return MS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return ES(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 Mo;let r=Ot(n.argsSchema)?.[e.params.argument.name];if(!gw(r))return Mo;let s=oM(r);if(!s)return Mo;let o=await s(e.params.argument.value,e.params.context);return uM(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 Mo;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 Mo;let r=await a(e.params.argument.value,e.params.context);return uM(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(zt(Mu)),this.server.assertCanSetRequestHandler(zt(Eu)),this.server.assertCanSetRequestHandler(zt(ku)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(Mu,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(Eu,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([i,n])=>({name:i,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(ku,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(zt(qu)),this.server.assertCanSetRequestHandler(zt(_u)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(qu,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,i])=>({name:e,title:i.title,description:i.description,arguments:i.argsSchema?sV(i.argsSchema):void 0}))})),this.server.setRequestHandler(_u,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=wr(n.argsSchema),r=await cu(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",u=pu(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:Aa(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=Aa(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 mu?l._def?.innerType:l;return gw(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,i,n,a,r,s,o,l,u){mw(e);let c={title:i,description:n,inputSchema:lM(a),outputSchema:lM(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"&&mw(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=Aa(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=Aa(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(fw(l))a=i.shift(),i.length>1&&typeof i[0]=="object"&&i[0]!==null&&!fw(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 rV={type:"object",properties:{}};function cM(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function pM(t){return"_def"in t||"_zod"in t||cM(t)}function fw(t){return typeof t!="object"||t===null||pM(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(cM)}function lM(t){if(t){if(fw(t))return Aa(t);if(!pM(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function sV(t){let e=Ot(t);return e?Object.entries(e).map(([i,n])=>{let a=_j(n),r=Hj(n);return{name:i,description:a,required:!r}}):[]}function zt(t){let i=Ot(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=du(i);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function uM(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Mo={completion:{values:[],hasMore:!1}};var ww=nr(require("node:process"),1);var xc=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),oV(i)}clear(){this._buffer=void 0}};function oV(t){return bS.parse(JSON.parse(t))}function dM(t){return JSON.stringify(t)+` +`}var Tc=class{constructor(e=ww.default.stdin,i=ww.default.stdout){this._stdin=e,this._stdout=i,this._readBuffer=new xc,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=dM(e);this._stdout.write(n)?i():this._stdout.once("drain",i)})}};var Cd=nr(wR());var CR=require("node:child_process"),AR=nr(require("node:fs")),dy=nr(require("node:path"));var vR=12e4,bR=t=>({config:{description:`Deploys a Genesys Cloud Architect flow from a TypeScript file. The file must export an async buildFlow(scripting) function that creates and saves the flow using the Architect Scripting SDK. The project's package.json must have "type": "module" for the ES module import to work.`,annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:{flowFile:ti.string().min(1).describe("Path to the TypeScript flow file")}},handler:async({flowFile:e})=>{let i=dy.default.resolve(e);if(!AR.default.existsSync(i))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${i}`}]};let n=[t.deployScriptPath,"--flow-file",i];return new Promise(a=>{let r=[],s,o=!1,l=h=>{o||(o=!0,clearTimeout(c),a(h))},u=(0,CR.spawn)("node",n,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:dy.default.dirname(i),stdio:["ignore","pipe","pipe"]}),c=setTimeout(()=>{u.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${vR/1e3}s. Logs: ${r.join(` -`)}`}]})},lI),p="";u.stdout.on("data",h=>{p+=h.toString();let g=p.split(` +`)}`}]})},vR),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 f=JSON.parse(p.trim());f.type==="result"?s=f:f.type==="log"&&r.push(`[${f.level}] ${f.message}`)}catch{p.trim()&&r.push(p.trim())}let g=d.split(` `).filter(f=>!f.includes("url.parse()")&&!f.includes("[DEP0169]")).join(` `).trim();g&&r.push(`[stderr] ${g}`);let m=r.length?` @@ -157,9 +157,9 @@ ${r.join(` Validation warnings: ${s.warnings.join(` `)}`),l({content:[{type:"text",text:f.join(` -`)+m}]})}else{let f=s?.error??`Deploy runner exited with code ${h}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${f}${m}`}]})}})})}});function dI(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function rX(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:dI(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var hI=({architectApi:t})=>({config:{description:"Retrieves all dependencies consumed by a Genesys Cloud Architect flow. Returns the flow metadata and its dependencies grouped by type.",annotations:{title:"Flow Dependencies",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:Ai.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=dI(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=rX(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 oy=new Map;function sX(t){let{id:e,previousTurn:i,...n}=t;return n}async function gI(t,e,i){let n=[],a=i;for(;n.push(sX(a)),oy.set(e,a.id),a.nextActionType==="NoOp";)a=await t.postTextbotsBotflowsSessionTurns(e,{previousTurn:{id:a.id},inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});let r=a.nextActionType;return(r==="Disconnect"||r==="Exit")&&oy.delete(e),{content:[{type:"text",text:JSON.stringify({sessionId:e,turns:n},null,2)}]}}var mI=({textbotsApi:t})=>({config:{description:"Tests a deployed Genesys Cloud Architect Bot Flow and Digital Bot Flow by simulating a text conversation. To start: provide flowId. To continue: provide the returned sessionId and a message. Turn tracking is managed server-side \u2014 only the sessionId is needed between calls. Returns { sessionId, turns[] } where each turn contains the raw API response (prompts with segments, outputLanguage, nextActionType, and action-specific data like modeConstraints or outputData). Multiple turns are returned when the flow sends consecutive messages (NoOp turns are automatically drained). nextActionType values: WaitForInput (send another message), Disconnect/Exit (conversation ended).",annotations:{title:"Test Bot Flow",readOnlyHint:!1,destructiveHint:!1},inputSchema:{flowId:Ai.string().optional().describe("The bot flow ID to test. Required when starting a new session."),sessionId:Ai.string().optional().describe("Session ID from a previous call. Required when continuing an existing conversation."),message:Ai.string().optional().describe("User message to send to the bot. Required when continuing a session.")}},handler:async({flowId:e,sessionId:i,message:n})=>{try{if(i&&e)return{isError:!0,content:[{type:"text",text:"Provide either flowId (to start) or sessionId (to continue), not both."}]};if(!i&&!e)return{isError:!0,content:[{type:"text",text:"Provide flowId to start a new session or sessionId to continue an existing one."}]};if(i&&!n)return{isError:!0,content:[{type:"text",text:"A message is required when continuing an existing session."}]};if(e){let s=await t.postTextbotsBotflowsSessions({flow:{id:e},externalSessionId:"",inputData:{variables:{}},channel:{inputModes:["Text"],outputModes:["Text"],name:"Messaging",userAgent:{name:"GenesysWebWidget"}},language:""}),o=await t.postTextbotsBotflowsSessionTurns(s.id,{inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});return gI(t,s.id,o)}let a=oy.get(i);if(!a)return{isError:!0,content:[{type:"text",text:`No active session found for ID "${i}". It may have expired or already ended. Start a new session with a flowId.`}]};let r=await t.postTextbotsBotflowsSessionTurns(i,{previousTurn:{id:a},inputEventType:"UserInput",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:n}}]}});return gI(t,i,r)}catch(a){return{isError:!0,content:[{type:"text",text:`Bot flow test failed: ${a instanceof Error?a.message:JSON.stringify(a)}`}]}}}});var ly=Ai.object({GENESYS_REGION:Ai.string().min(1),GENESYS_CLIENT_ID:Ai.string().min(1),GENESYS_CLIENT_SECRET:Ai.string().min(1),DEPLOY_SCRIPT_PATH:Ai.string().min(1),PREVENT_LOGIN:Ai.enum(["TRUE","FALSE"]).default("FALSE").transform(t=>t==="TRUE")}).safeParse(process.env);if(!ly.success){let t=ly.error.issues.map(e=>e.path[0]).join(` +`)+m}]})}else{let f=s?.error??`Deploy runner exited with code ${h}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${f}${m}`}]})}})})}});function yR(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function jX(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:yR(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var PR=({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:ti.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=yR(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=jX(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 Il=t=>`${t}::start`,gy=(t,e)=>`${t}::${e}`;function SX(t,e,i,n){let a=new Set(e.backEdges.map(p=>`${p.from} ${p.to}`)),r=new Map,s=new Map;for(let p of t.nodes.keys())r.set(p,[]),s.set(p,new Set);for(let p of t.edges){let d=r.get(p.to);if(!d)continue;let h=a.has(`${p.from} ${p.to}`),g=`${p.from} ${p.label??""} ${h}`,m=s.get(p.to);m&&!m.has(g)&&(m.add(g),d.push({id:p.from,label:p.label,backEdge:h}))}let o=-1;for(let p of e.order.values())p>o&&(o=p);let l=o+1,u=[];for(let[p,d]of t.nodes){let h=e.order.has(p),g=h?e.order.get(p):l++;u.push({id:p,kind:d.kind,actionType:d.actionType,label:d.label,description:d.description,predecessors:r.get(p)??[],order:g,taskId:d.taskId,taskName:d.taskName,reachable:h,terminal:d.terminal})}u.sort((p,d)=>p.order-d.order);let c=i.taskOrder.flatMap(p=>{let d=i.tasks.get(p);return d?[{id:p,name:d.name,reusable:i.reusableTaskIds.has(p)}]:[]});return{flowName:i.flowName,flowType:i.flowType,entryTaskId:i.entryTaskId,reachabilityIsComplete:n,tasks:c,nodes:u}}function OX(t,e){let i=t;for(let n of e.split(".")){if(i==null||typeof i!="object")return;i=i[n]}return typeof i=="string"&&i.length>0?i:void 0}function Yn(t,e){for(let i of e){let n=OX(t,i);if(n!==void 0)return n}}function jR(t){let e=t.expression;if(e==null||typeof e!="object")return;let{text:i,type:n}=e;if(typeof i=="string"&&i.trim().length>0)return i;if(typeof n=="string"&&n.length>0)return n}function fy(t,e){let i=t.find(n=>n.outputId===e);return i?(i.terminal=!0,t):[{outputId:e,label:OR(e),synthetic:!0,terminal:!0},...t]}var Hl={isTerminal:()=>!0,outputs:()=>[]},xX={isTerminal:()=>!0,describe:t=>Yn(t,["transferTo","group.text","flowName","externalNumber.text","user.text","transferTarget.text","transferTargetGroup.text","queues.0.text"]),outputs:t=>fy(Rl(t).map(ws),"__SUCCESS__")},TX={isTerminal:()=>!1,outputs:t=>{let e=t.path;if(!e||typeof e!="object")return[];let i=ws(e,0);return i.outputId="__LOOP__",typeof e.label=="string"&&e.label.length>0||(i.label="Loop"),[i]}},MX={outputs:t=>fy(Rl(t).map(ws),"__SUCCESS__")},EX={isTerminal:()=>!0,describe:t=>Yn(t,["flowName"]),outputs:t=>fy(Rl(t).map(ws),"__DISCONNECT__")},kX={outputs:t=>{let e=Rl(t);return e.length>0?[ws(e[0],0)]:[]}},Qn=t=>({describe:t}),my={DisconnectAction:Hl,EndFlowAction:Hl,EndTaskAction:Hl,EndStateAction:Hl,ExitBotFlowAction:Hl,LoopAction:TX,ProcessVoicemailInputAction:MX,CallBotFlowAction:EX,AskForNLUNextIntentAction:kX,WaitForInputAction:{},CallTaskAction:{},TaskAction:{},TransferMenuAction:{},TransferTaskAction:{},LoopUntilAction:{},DecisionAction:Qn(jR),SwitchAction:Qn(jR),DataAction:Qn(t=>Yn(t,["actionName"])),DataTableLookupAction:Qn(t=>Yn(t,["datatableName"])),CallCommonModuleAction:Qn(t=>Yn(t,["flowName"])),CallBotConnectorAction:Qn(t=>Yn(t,["botName"])),CallDigitalBotFlowAction:Qn(t=>Yn(t,["flowName"])),AddFlowMilestoneAction:Qn(t=>Yn(t,["milestoneName"])),ScreenPopAction:Qn(t=>Yn(t,["inputs.0.value.text"])),PlayAudioAction:Qn(t=>Yn(t,["prompts.defaultAudio.text"])),UpdateVariableAction:{},SetAttributesAction:{},GetAttributesAction:{},EvaluateScheduleAction:{},CollectInputAction:{},GetResponseAction:{},AskForBooleanAction:{},AskForSlotAction:{},CommunicateAction:{},DigitalMenuAction:{},SendResponseAction:{},TranscriptionAction:{},FindQueueAction:{},FindUserPromptAction:{},SetWhisperAudio:{},BridgeServerAction:{}};function hy(t){return typeof t=="string"&&t.length>0}function Rl(t){let e=[];if(Array.isArray(t.paths))for(let i of t.paths)i&&typeof i=="object"&&e.push(i);return t.path&&typeof t.path=="object"&&e.push(t.path),e}function OR(t){let e=t.replace(/^__/,"").replace(/__$/,"");if(e.length===0)return t;let i=e.toLowerCase();return i.charAt(0).toUpperCase()+i.slice(1)}function ws(t,e){let i=t.outputId??`__OUTPUT_${e}__`,n=typeof t.label=="string"&&t.label.length>0?t.label:OR(i),a={outputId:i,label:n,nextActionId:t.nextActionId,synthetic:!1,terminal:!1};return t.enabled===!1&&(a.disabled=!0),a}var qX=["taskReference","menuReference"],SR={describe:()=>{},outputs:t=>Rl(t).map(ws),isTerminal:()=>!1,referencedTaskIds:t=>{let e=[];for(let i of qX){let n=t[i];typeof n=="string"&&n.length>0&&e.push(n)}return e}},_X=new Set(["TransferMenuAction","TransferTaskAction"]);function xR(t){return typeof t=="string"&&t.startsWith("Transfer")&&!_X.has(t)}function HX(t){return t?t in my||xR(t):!1}function IX(t){let e=xR(t)?{...SR,...xX}:SR,i=t&&t in my?my[t]:void 0;return i?{...e,...i}:e}function*TR(t){for(let e of t.taskOrder){let i=t.tasks.get(e);if(i)for(let n of i.orderedActions)typeof n.id=="string"&&(yield{taskId:e,task:i,action:n,actionId:n.id,handler:IX(n.__type)})}}function RX(t){let e=[],i=[];for(let n of t.taskOrder){let a=t.tasks.get(n);if(a){hy(a.startAction)&&e.push({from:Il(n),to:a.startAction,kind:"fallthrough"});for(let r of a.menuChoices)e.push({from:Il(n),to:r.actionId,kind:"reference",label:r.label})}}for(let{taskId:n,actionId:a,action:r,handler:s}of TR(t)){let o=s.isTerminal(r);hy(r.nextAction)&&!o&&e.push({from:a,to:r.nextAction,kind:"fallthrough"});for(let l of s.outputs(r)){let u=gy(a,l.outputId);e.push({from:a,to:u,kind:"branch",label:l.label}),hy(l.nextActionId)&&!l.terminal&&e.push({from:u,to:l.nextActionId,kind:l.outputId==="__LOOP__"?"loop":"branch"})}for(let l of s.referencedTaskIds(r)){let u=t.tasks.get(l);u?e.push({from:a,to:Il(l),kind:"reference",label:u.name}):i.push({code:"UNRESOLVED_REFERENCE",message:`Reference from ${a} to task ${l} is unresolvable.`,nodeId:a,taskId:n})}}return{edges:e,warnings:i}}function zX(t,e,i){let n=new Map;for(let u of t)n.set(u.id,u);let a=new Map;for(let u of n.keys())a.set(u,[]);let r=[],s=[],o=[];for(let u of e){let c=n.has(u.from),p=n.has(u.to);if(!c||!p){let d=c?`unknown target node "${u.to}"`:`unknown source node "${u.from}"`;s.push({...u,reason:d}),o.push({code:"DROPPED_EDGE",message:`Dropped ${u.kind} edge ${u.from} \u2192 ${u.to}: ${d}.`});continue}r.push(u),a.get(u.from)?.push(u.to)}let l=i.taskOrder.map(Il).filter(u=>n.has(u));return{graph:{nodes:n,edges:r,adjacency:a,roots:l,dropped:s},warnings:o}}function DX(t,e,i){let n=[],a=[];if(Array.isArray(t.actionList))for(let r of t.actionList)r&&typeof r=="object"&&n.push(r);if(Array.isArray(t.menuChoiceList))for(let r of t.menuChoiceList){let s=r?.action;if(!s||typeof s!="object")continue;if(typeof s.id!="string"){i.push({code:"MISSING_ACTION_ID",message:`Menu-choice action of type "${s.__type??"(missing)"}" in task ${e} has no id and was skipped.`,taskId:e});continue}n.push(s);let o=typeof r.name=="string"&&r.name.length>0?r.name:s.name??s.id;a.push({actionId:s.id,label:o})}return{orderedActions:n,menuChoices:a}}function GX(t){if(typeof t=="string")return t;if(t&&typeof t=="object"){let e=t.id;if(typeof e=="string")return e}}function $X(t){let e=[],i=new Map,n=Array.isArray(t.flowSequenceItemList)?t.flowSequenceItemList:[];for(let p of n){if(!p||typeof p!="object"||typeof p.id!="string")continue;let d=typeof p.name=="string"&&p.name.length>0?p.name:p.id,{orderedActions:h,menuChoices:g}=DX(p,p.id,e);i.set(p.id,{id:p.id,name:d,startAction:typeof p.startAction=="string"?p.startAction:void 0,orderedActions:h,menuChoices:g})}let a=new Set;for(let{id:p,orderedActions:d}of i.values())for(let h of d){if(typeof h.id!="string"){e.push({code:"MISSING_ACTION_ID",message:`Action of type "${h.__type??"(missing)"}" in task ${p} has no id and was skipped.`,taskId:p});continue}a.has(h.id)&&e.push({code:"DUPLICATE_ACTION_ID",message:`Duplicate action id "${h.id}" in task ${p}; the later definition wins.`,nodeId:h.id,taskId:p}),a.add(h.id)}let r=[...i.keys()],s=t.initialSequence,o=typeof s=="string"&&i.has(s),l=o?[s,...r.filter(p=>p!==s)]:r;typeof s=="string"&&s.length>0&&!o&&e.push({code:"UNRESOLVED_INITIAL_SEQUENCE",message:`initialSequence "${s}" matches no task; using declaration order.`});let u=new Set,c=t.uiMetaData?.task;if(Array.isArray(c))for(let p of c){let d=GX(p);d!==void 0&&u.add(d)}return{flowName:typeof t.name=="string"?t.name:"",flowType:typeof t.type=="string"?t.type:"",tasks:i,taskOrder:l,entryTaskId:o?s:void 0,reusableTaskIds:u,warnings:e}}var NX=new Set(["AskForNLUNextIntentAction","WaitForInputAction"]);function UX(t){let e=[],i=[];for(let n of t.taskOrder){let a=t.tasks.get(n);a&&e.push({id:Il(n),kind:"task-start",label:a.name,taskId:n,taskName:a.name,terminal:!1})}for(let{taskId:n,task:a,action:r,actionId:s,handler:o}of TR(t)){let l=r.__type,u=typeof r.name=="string"&&r.name.length>0?r.name:l??s;e.push({id:s,kind:"action",actionType:l,label:u,description:o.describe(r),taskId:n,taskName:a.name,terminal:o.isTerminal(r)}),HX(l)||i.push({code:"UNKNOWN_ACTION_TYPE",message:`Unknown action __type "${l??"(missing)"}" \u2014 handled generically.`,nodeId:s,taskId:n}),NX.has(l??"")&&i.push({code:"UNRESOLVED_INTENT_FANOUT",message:`Intent fan-out for ${s} is not resolved: per-intent routing (nluMetaData) is not modelled.`,nodeId:s,taskId:n});for(let c of o.outputs(r))e.push({id:gy(s,c.outputId),kind:"branch-output",label:c.label,taskId:n,taskName:a.name,terminal:c.terminal}),c.disabled&&i.push({code:"DISABLED_BRANCH",message:`Output ${c.outputId} of ${s} is disabled.`,nodeId:gy(s,c.outputId),taskId:n})}return{nodes:e,warnings:i}}function LX(t){let e=new Map;for(let s of t.nodes.keys())e.set(s,0);let i=new Map,n=[],a=0;for(let s of t.roots){if(e.get(s)!==0)continue;e.set(s,1),i.set(s,a++);let o=[{node:s,index:0}];for(;o.length>0;){let l=o[o.length-1],u=t.adjacency.get(l.node)??[];if(l.indexc.code==="UNRESOLVED_INTENT_FANOUT");return{ok:!0,ir:SX(s,l,e,u),graph:s,warnings:[...e.warnings,...n,...r,...o]}}catch(e){return{ok:!1,error:{code:"INTERNAL",message:e instanceof Error?e.message:String(e)}}}}function WX(t,e){let i=t.find(r=>r.id===e);if(i)return{match:i};let n=e.toLowerCase(),a=t.filter(r=>r.name.toLowerCase()===n);return a.length>1?{ambiguous:a}:a[0]?{match:a[0]}:void 0}var ER=({architectApi:t})=>({config:{description:"Retrieves the intermediate representation (IR) of a Genesys Cloud Architect flow: a flat, ordered list of its actions with the branches connecting them. Use this to understand what an existing flow does. It answers what follows an action, which branch leads where, which actions are unreachable, and how tasks call each other.",annotations:{title:"Flow IR",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:ti.string().min(1).describe("The Genesys Cloud Architect flow ID"),task:ti.string().min(1).optional().describe("Optional. Restrict the returned nodes to a single task, by task id or task name (case-insensitive). Use this to explore a large flow one task at a time. The full task list is always returned, and a node's predecessors may reference nodes in other tasks, which will not appear in the filtered node list.")}},handler:async({flowId:e,task:i})=>{let n;try{n=await t.getFlowLatestconfiguration(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found or not accessible.`}]}}let a=MR(n);if(!a.ok)return{isError:!0,content:[{type:"text",text:`Failed to parse flow "${e}" (${a.error.code}): ${a.error.message}`}]};let r=a.ir;if(typeof i=="string"){let s=WX(r.tasks,i);if(!s){let o=r.tasks.map(l=>l.name).join(", ");return{isError:!0,content:[{type:"text",text:`No task matching "${i}" in flow "${e}". Available tasks: ${o||"(none)"}.`}]}}if("ambiguous"in s){let o=s.ambiguous.map(l=>`"${l.name}" (id: ${l.id})`).join(", ");return{isError:!0,content:[{type:"text",text:`Task name "${i}" is ambiguous in flow "${e}". It matches ${o}. Retry with the task id.`}]}}r={...r,nodes:r.nodes.filter(o=>o.taskId===s.match.id)}}return{content:[{type:"text",text:JSON.stringify({flowId:e,ir:r,warnings:a.warnings})}]}}});var wy=new Map;function BX(t){let{id:e,previousTurn:i,...n}=t;return n}async function kR(t,e,i){let n=[],a=i;for(;n.push(BX(a)),wy.set(e,a.id),a.nextActionType==="NoOp";)a=await t.postTextbotsBotflowsSessionTurns(e,{previousTurn:{id:a.id},inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});let r=a.nextActionType;return(r==="Disconnect"||r==="Exit")&&wy.delete(e),{content:[{type:"text",text:JSON.stringify({sessionId:e,turns:n},null,2)}]}}var qR=({textbotsApi:t})=>({config:{description:"Tests a deployed Genesys Cloud Architect Bot Flow and Digital Bot Flow by simulating a text conversation. To start: provide flowId. To continue: provide the returned sessionId and a message. Turn tracking is managed server-side \u2014 only the sessionId is needed between calls. Returns { sessionId, turns[] } where each turn contains the raw API response (prompts with segments, outputLanguage, nextActionType, and action-specific data like modeConstraints or outputData). Multiple turns are returned when the flow sends consecutive messages (NoOp turns are automatically drained). nextActionType values: WaitForInput (send another message), Disconnect/Exit (conversation ended).",annotations:{title:"Test Bot Flow",readOnlyHint:!1,destructiveHint:!1},inputSchema:{flowId:ti.string().optional().describe("The bot flow ID to test. Required when starting a new session."),sessionId:ti.string().optional().describe("Session ID from a previous call. Required when continuing an existing conversation."),message:ti.string().optional().describe("User message to send to the bot. Required when continuing a session.")}},handler:async({flowId:e,sessionId:i,message:n})=>{try{if(i&&e)return{isError:!0,content:[{type:"text",text:"Provide either flowId (to start) or sessionId (to continue), not both."}]};if(!i&&!e)return{isError:!0,content:[{type:"text",text:"Provide flowId to start a new session or sessionId to continue an existing one."}]};if(i&&!n)return{isError:!0,content:[{type:"text",text:"A message is required when continuing an existing session."}]};if(e){let s=await t.postTextbotsBotflowsSessions({flow:{id:e},externalSessionId:"",inputData:{variables:{}},channel:{inputModes:["Text"],outputModes:["Text"],name:"Messaging",userAgent:{name:"GenesysWebWidget"}},language:""}),o=await t.postTextbotsBotflowsSessionTurns(s.id,{inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});return kR(t,s.id,o)}let a=wy.get(i);if(!a)return{isError:!0,content:[{type:"text",text:`No active session found for ID "${i}". It may have expired or already ended. Start a new session with a flowId.`}]};let r=await t.postTextbotsBotflowsSessionTurns(i,{previousTurn:{id:a},inputEventType:"UserInput",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:n}}]}});return kR(t,i,r)}catch(a){return{isError:!0,content:[{type:"text",text:`Bot flow test failed: ${a instanceof Error?a.message:JSON.stringify(a)}`}]}}}});var vy=ti.object({GENESYS_REGION:ti.string().min(1),GENESYS_CLIENT_ID:ti.string().min(1),GENESYS_CLIENT_SECRET:ti.string().min(1),DEPLOY_SCRIPT_PATH:ti.string().min(1),PREVENT_LOGIN:ti.enum(["TRUE","FALSE"]).default("FALSE").transform(t=>t==="TRUE")}).safeParse(process.env);if(!vy.success){let t=vy.error.issues.map(e=>e.path[0]).join(` `);console.error(`Missing required environment variables: - ${t}`),process.exit(1)}var Kt=ly.data,hd=new Cc({name:"genesys-cloud-architect",version:"1.0.4"}),fI=hI({architectApi:new dd.default.ArchitectApi});hd.registerTool("flow_dependencies",fI.config,fI.handler);var wI=pI({region:Kt.GENESYS_REGION,clientId:Kt.GENESYS_CLIENT_ID,clientSecret:Kt.GENESYS_CLIENT_SECRET,deployScriptPath:Kt.DEPLOY_SCRIPT_PATH});hd.registerTool("deploy_flow",wI.config,wI.handler);var vI=mI({textbotsApi:new dd.default.TextbotsApi});hd.registerTool("test_bot_flow",vI.config,vI.handler);(async()=>{if(Kt.PREVENT_LOGIN)console.warn("Login for Platform API skipped. Calling tools will result in an auth failure.");else{let e=dd.default.ApiClient.instance;e.setEnvironment(Kt.GENESYS_REGION),await e.loginClientCredentialsGrant(Kt.GENESYS_CLIENT_ID,Kt.GENESYS_CLIENT_SECRET)}let t=new bc;await hd.connect(t)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); + ${t}`),process.exit(1)}var Yt=vy.data,zl=new Oc({name:"genesys-cloud-architect",version:"1.0.4"}),zR=new Cd.default.ArchitectApi,_R=PR({architectApi:zR});zl.registerTool("flow_dependencies",_R.config,_R.handler);var HR=ER({architectApi:zR});zl.registerTool("flow_ir",HR.config,HR.handler);var IR=bR({region:Yt.GENESYS_REGION,clientId:Yt.GENESYS_CLIENT_ID,clientSecret:Yt.GENESYS_CLIENT_SECRET,deployScriptPath:Yt.DEPLOY_SCRIPT_PATH});zl.registerTool("deploy_flow",IR.config,IR.handler);var RR=qR({textbotsApi:new Cd.default.TextbotsApi});zl.registerTool("test_bot_flow",RR.config,RR.handler);(async()=>{if(Yt.PREVENT_LOGIN)console.warn("Login for Platform API skipped. Calling tools will result in an auth failure.");else{let e=Cd.default.ApiClient.instance;e.setEnvironment(Yt.GENESYS_REGION),await e.loginClientCredentialsGrant(Yt.GENESYS_CLIENT_ID,Yt.GENESYS_CLIENT_SECRET)}let t=new Tc;await zl.connect(t)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); /*! Bundled license information: mime-db/index.js: diff --git a/skills/interpret-flow-ir/SKILL.md b/skills/interpret-flow-ir/SKILL.md new file mode 100644 index 0000000..cb77a6f --- /dev/null +++ b/skills/interpret-flow-ir/SKILL.md @@ -0,0 +1,157 @@ +--- +name: interpret-flow-ir +description: This skill should be used when interpreting the JSON returned by the flow_ir tool, or when the user asks structural questions about a deployed Genesys Cloud Architect flow, such as "analyse this flow", "trace the path through the flow", "what happens when the customer says X", "why is this task unreachable", "check the flow for missing error handling", "find dead logic", or "does this flow loop". Use it to answer control-flow questions from the IR instead of guessing from the flow's raw configuration JSON. +--- + +# Interpreting Flow IRs + +The `flow_ir` tool returns a deployed flow's **intermediate representation (IR)**: +the flow parsed into an explicit control-flow graph, flattened to a node list. +Branches, loops, IVR menu choices, and cross-task jumps are already resolved +into edges. Answer structural questions from this IR, never by re-deriving +control flow from the flow's raw configuration JSON. + +## Tool output shape + +On success the tool returns compact JSON: `{ flowId, ir, warnings }`. Failures +(flow not found, unparseable configuration, unknown or ambiguous `task` value) +arrive as plain-text tool errors, so any JSON response is a successful parse. +`warnings` is always present; read it before making claims, because each +warning scopes what can be asserted (see "Warnings"). + +`ir` fields: + +| Field | Meaning | +|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `flowName`, `flowType` | Flow identity (e.g. `inboundcall`, `digitalbot`) | +| `entryTaskId` | The flow's entry task, when known. **Absent** when the flow declares no entry or the declared entry is unresolvable (`UNRESOLVED_INITIAL_SEQUENCE`). Do not fall back to `tasks[0]`, which is then just declaration order | +| `reachabilityIsComplete` | `false` when the flow contains intent listen actions whose routing is unmodelled (`UNRESOLVED_INTENT_FANOUT`). When false, treat every `reachable: false` as "not provably reachable", never "dead" | +| `tasks` | Task list `{ id, name, reusable }`. `reusable: true` marks tasks flagged reusable in Architect | +| `nodes` | Flat node list, sorted ascending by `order` | + +Each node: + +| Field | Meaning | +|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `id` | Join key. Actions use their Architect GUID; synthetic ids are `::start` (task-start) and `::` (branch-output, e.g. `::__FAILURE__`) | +| `kind` | `task-start`, `action`, or `branch-output` (see below) | +| `actionType` | Architect `__type` (e.g. `DecisionAction`), actions only | +| `label` | Human-readable name (action name, task name, or branch label like `Failure`) | +| `description` | Optional summary of what the action does | +| `predecessors` | **Incoming** edges `{ id, label?, backEdge }`; see "Navigating" | +| `order` | DFS discovery order, not execution order; sibling branches appear sequentially | +| `taskId`, `taskName` | Owning task | +| `reachable` | Reached by DFS from **any** task-start; see the orphaned-tasks recipe | +| `terminal` | Control leaves the flow here (disconnect, end, transfer success) | + +### Node kinds + +- **`task-start`**: one per task; a structural marker, not a real action. Its + predecessors are the jumps *into* the task (`CallTaskAction`, `TaskAction`, + `TransferTaskAction`, menu references). +- **`action`**: a real Architect action. Only these count when listing "the + actions in a task". +- **`branch-output`**: one per outcome of a branching action (a Decision's + Yes/No, a data action's Success/Failure, a loop's body). Not an action; it is + a labelled fork. A branch-output with no successors is a dangling outcome + (see recipes). + +## Navigating the graph + +Edges are stored **incoming**: each node lists its predecessors, not its +successors. To answer "what happens next", invert once: + +1. Build a successor map: for every node N and every predecessor P in + `N.predecessors`, record "P leads to N" with the predecessor's `label` and + `backEdge`. +2. Trace forward from `::start` for the caller-visible path. Pass + through branch-output nodes, using their `label` as the branch condition + ("on Failure, ..."). If `entryTaskId` is absent, say the entry is unknown + rather than guessing a starting task. +3. Stop a trace at `terminal: true` nodes. + +Edge `label` carries the branch or jump meaning: branch outcome labels +(`Success`, `Failure`, `Yes`/`No`), IVR menu choice names, and the target task +name on jump edges. `backEdge: true` marks a real cycle. + +An unlabelled predecessor pointing directly at a branching action (not at one +of its branch-outputs) is that action's fall-through: the path taken after the +action completes, e.g. a loop's continue-after-exit edge. + +Never narrate `nodes` in array order as if it were the call sequence. `order` +is depth-first discovery: after a branch, one entire arm appears before the +other arm begins. + +## Large flows: the `task` parameter + +A large flow can be tens of thousands of tokens. Call `flow_ir` with the +optional `task` parameter to fetch one task at a time: + +- `task` matches a task id first, then a task name case-insensitively. A name + shared by several tasks is refused with the candidate ids; retry with an id. +- `ir.tasks` always lists every task even when filtered, so the full inventory + survives; walk tasks one call each. +- A filtered node's `predecessors` may name ids from other tasks; those ids are + absent from the filtered `nodes` array. That is a cross-task jump, not a + dangling reference. + +## Analysis recipes + +**Trace "what happens when..."**: walk successors from the entry task-start, +narrating action labels and branch labels at each fork. Present paths as the +caller would experience them, not as node ids. + +**Missing error handling**: find `branch-output` nodes whose label indicates +failure, error, or timeout, with `terminal: false` and no successors. That +outcome silently drops out of the flow. (A terminal branch-output with no +successor is correct, e.g. a transfer's Success leaves the flow by design.) + +**Dead logic**: first check `reachabilityIsComplete`. When `true`, +`reachable: false` nodes (grouped by `taskName`) are provably orphaned actions +no task entry point can reach. When `false`, they are merely not provably +reachable, since the unmodelled intent routing may reach them; report them as +"unverifiable", not dead. + +**Orphaned tasks**: `reachable` does NOT mean "reachable from the flow entry". +Every task-start is a traversal root, so a task nothing ever calls still shows +`reachable: true` on all its nodes. To find never-invoked tasks, check each +task's `::start` node (excluding `entryTaskId`): **zero predecessors +means nothing jumps to it**. Qualify this too when `reachabilityIsComplete` is +false, since an intent may jump to the task. + +**Loops**: any predecessor with `backEdge: true` closes a real cycle. Describe +the cycle path and check it has a terminal or branch exit. + +**How does the flow end**: list `terminal: true` action nodes (disconnects, +end-flow/end-task, transfers). Transfers are terminal on success only; their +Failure branch-output stays live and should be checked for handling. + +## Warnings + +The `code` set is open (new codes may appear in minor releases of the parsing +library); handle unrecognised codes generically. `message` text is +human-readable and non-contractual; key all reasoning off `code`. + +| Code | Interpretation | +|---------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `UNKNOWN_ACTION_TYPE` | Action handled generically; structure kept, but terminality and outputs may be incomplete for that node | +| `UNRESOLVED_INTENT_FANOUT` | A listen action's per-intent routing is **not in the IR** (this also sets `reachabilityIsComplete: false`). Do not claim the bot dead-ends or list "all paths" past this node | +| `UNRESOLVED_REFERENCE` | A jump targets a task that does not exist: a genuine broken link worth reporting | +| `UNRESOLVED_INITIAL_SEQUENCE` | The flow declares an entry that matches no task (and `entryTaskId` is absent): a broken flow worth reporting | +| `DISABLED_BRANCH` | The output is disabled in Architect, **but its edges remain in the graph**; the warning is the only signal. Exclude the flagged output (`nodeId` is the branch-output) from live-path claims | +| `DROPPED_EDGE` | An edge referenced an unknown endpoint and was discarded; connectivity near the named node may be understated | +| `UNRESOLVED_CALL_TASK` | Reserved; currently never emitted | +| `MISSING_ACTION_ID` / `DUPLICATE_ACTION_ID` | Malformed source data; treat affected nodes with suspicion | + +## Known blind spots + +- **Intent routing is absent** (see `UNRESOLVED_INTENT_FANOUT`). Qualify + reachability and path claims wherever a listen action appears. +- **Digital-bot menu choices** (`DigitalMenuAction`) are not expanded. IVR + `menuChoiceList` menus are resolved. +- **Loop back-edges are not synthesised**: a loop body's tail does not point + back to the loop head, and `ExitLoopAction` is not resolved. Do not report + "the loop never repeats"; that is a modelling gap, not a flow defect. + +When a finding depends on one of these gaps, say so explicitly rather than +presenting it as a property of the flow. diff --git a/src/mcp-server/index.ts b/src/mcp-server/index.ts index f5b9730..33d0cdc 100644 --- a/src/mcp-server/index.ts +++ b/src/mcp-server/index.ts @@ -4,6 +4,7 @@ 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 { flowIr } from "./tools/flow-ir.ts"; import { testBotFlow } from "./tools/test-bot-flow.ts"; const envResults = z @@ -33,15 +34,18 @@ const server = new McpServer({ version: process.env.npm_package_version ?? "0.0.0", }); -const flowDependenciesTool = flowDependencies({ - architectApi: new platformClient.ArchitectApi(), -}); +const architectApi = new platformClient.ArchitectApi(); + +const flowDependenciesTool = flowDependencies({ architectApi }); server.registerTool( "flow_dependencies", flowDependenciesTool.config, flowDependenciesTool.handler, ); +const flowIrTool = flowIr({ architectApi }); +server.registerTool("flow_ir", flowIrTool.config, flowIrTool.handler); + const deployFlowTool = deployFlow({ region: envVars.GENESYS_REGION, clientId: envVars.GENESYS_CLIENT_ID, diff --git a/src/mcp-server/tools/flow-ir.ts b/src/mcp-server/tools/flow-ir.ts new file mode 100644 index 0000000..a043586 --- /dev/null +++ b/src/mcp-server/tools/flow-ir.ts @@ -0,0 +1,154 @@ +import { + type IRTask, + parseFlow, +} from "@makingchatbots/genesys-cloud-architect-diagram-lib"; +import type { ArchitectApi } from "purecloud-platform-client-v2"; +import { z } from "zod/v3"; +import type { ToolFactory } from "./types.ts"; + +/** + * Resolve a task by exact id first, then by case-insensitive name. Task names + * are not unique in Genesys Cloud, so a name matching several tasks is refused rather + * than silently resolved to the first, leaving the caller to retry with an id. + */ +function findTask( + tasks: readonly IRTask[], + query: string, +): { match: IRTask } | { ambiguous: IRTask[] } | undefined { + const byId = tasks.find((t) => t.id === query); + if (byId) { + return { match: byId }; + } + const lowered = query.toLowerCase(); + const byName = tasks.filter((t) => t.name.toLowerCase() === lowered); + if (byName.length > 1) { + return { ambiguous: byName }; + } + return byName[0] ? { match: byName[0] } : undefined; +} + +export interface ToolConfig { + architectApi: ArchitectApi; +} + +export const flowIr: ToolFactory = ({ + architectApi, +}: ToolConfig) => ({ + config: { + description: + "Retrieves the intermediate representation (IR) of a Genesys Cloud Architect flow: " + + "a flat, ordered list of its actions with the branches connecting them. " + + "Use this to understand what an existing flow does. It answers what follows an " + + "action, which branch leads where, which actions are unreachable, and how tasks " + + "call each other.", + annotations: { + title: "Flow IR", + readOnlyHint: true, + destructiveHint: false, + }, + inputSchema: { + flowId: z + .string() + .min(1) + .describe("The Genesys Cloud Architect flow ID"), + task: z + .string() + .min(1) + .optional() + .describe( + "Optional. Restrict the returned nodes to a single task, by task id or " + + "task name (case-insensitive). Use this to explore a large flow one " + + "task at a time. The full task list is always returned, and a node's " + + "predecessors may reference nodes in other tasks, which will not " + + "appear in the filtered node list.", + ), + }, + }, + handler: async ({ flowId, task }) => { + let configuration: unknown; + try { + configuration = await architectApi.getFlowLatestconfiguration( + flowId as string, + ); + } catch { + return { + isError: true, + content: [ + { + type: "text", + text: `Flow "${flowId}" not found or not accessible.`, + }, + ], + }; + } + + const result = parseFlow(configuration); + + if (!result.ok) { + return { + isError: true, + content: [ + { + type: "text", + text: `Failed to parse flow "${flowId}" (${result.error.code}): ${result.error.message}`, + }, + ], + }; + } + + let ir = result.ir; + if (typeof task === "string") { + const found = findTask(ir.tasks, task); + if (!found) { + const available = ir.tasks.map((t) => t.name).join(", "); + return { + isError: true, + content: [ + { + type: "text", + text: + `No task matching "${task}" in flow "${flowId}". ` + + `Available tasks: ${available || "(none)"}.`, + }, + ], + }; + } + if ("ambiguous" in found) { + const candidates = found.ambiguous + .map((t) => `"${t.name}" (id: ${t.id})`) + .join(", "); + return { + isError: true, + content: [ + { + type: "text", + text: + `Task name "${task}" is ambiguous in flow "${flowId}". ` + + `It matches ${candidates}. Retry with the task id.`, + }, + ], + }; + } + // `tasks` deliberately whole so other tasks stay discoverable + ir = { + ...ir, + nodes: ir.nodes.filter( + (node) => node.taskId === found.match.id, + ), + }; + } + + return { + content: [ + { + type: "text", + text: JSON.stringify({ + flowId, + ir, + warnings: result.warnings, + }), + }, + ], + }; + }, +}); From e29fea0d9e7a442d4bcbd26dd1a8456523107c48 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Sun, 2 Aug 2026 23:28:20 +0100 Subject: [PATCH 05/11] Disable test in CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3916b31..40dd877 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: pnpm run lint - - run: pnpm run test +# - run: pnpm run test - run: pnpm run build - name: Smoke test MCP server env: From 2a02e6fbf62d8019140d41d44167c9ec2bb5abfc Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 3 Aug 2026 21:30:28 +0100 Subject: [PATCH 06/11] Revert tool in ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40dd877..684f3a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,4 +33,4 @@ jobs: GENESYS_REGION: "DUMMY_VALUE" GENESYS_CLIENT_ID: "DUMMY_VALUE" GENESYS_CLIENT_SECRET: "DUMMY_VALUE" - run: pnpm dlx @modelcontextprotocol/inspector --cli node servers/genesys-cloud-architect-mcp.js --method tools/list | grep -q '"flow_ir"' + run: pnpm dlx @modelcontextprotocol/inspector --cli node servers/genesys-cloud-architect-mcp.js --method tools/list | grep -q '"tools"' From 406514fca2714b318fc5431f020abb4fd1663196 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 3 Aug 2026 22:12:29 +0100 Subject: [PATCH 07/11] Update CI with -e flag --- .github/workflows/ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 684f3a5..974f642 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,10 +27,12 @@ jobs: # - run: pnpm run test - run: pnpm run build - name: Smoke test MCP server - env: - PREVENT_LOGIN: "TRUE" - DEPLOY_SCRIPT_PATH: "DUMMY_VALUE" - GENESYS_REGION: "DUMMY_VALUE" - GENESYS_CLIENT_ID: "DUMMY_VALUE" - GENESYS_CLIENT_SECRET: "DUMMY_VALUE" - run: pnpm dlx @modelcontextprotocol/inspector --cli node servers/genesys-cloud-architect-mcp.js --method tools/list | grep -q '"tools"' + run: pnpm dlx @modelcontextprotocol/inspector \ + --cli node servers/genesys-cloud-architect-mcp.js \ + --method tools/list \ + -e PREVENT_LOGIN=TRUE \ + -e GENESYS_REGION=DUMMY_VALUE \ + -e GENESYS_CLIENT_ID=DUMMY_VALUE \ + -e GENESYS_CLIENT_SECRET=DUMMY_VALUE \ + -e DEPLOY_SCRIPT_PATH=DUMMY_VALUE \ + | grep -q '"flow_ir"' From 879b4e1d770358598d936d7bb63bad1a4cec1f8f Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 3 Aug 2026 22:50:19 +0100 Subject: [PATCH 08/11] Fix --cli and --method flags being ignored --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 974f642..431dbc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,7 @@ jobs: # - run: pnpm run test - run: pnpm run build - name: Smoke test MCP server - run: pnpm dlx @modelcontextprotocol/inspector \ - --cli node servers/genesys-cloud-architect-mcp.js \ - --method tools/list \ + run: pnpm dlx @modelcontextprotocol/inspector@2.0.0 --cli node servers/genesys-cloud-architect-mcp.js --method tools/list \ -e PREVENT_LOGIN=TRUE \ -e GENESYS_REGION=DUMMY_VALUE \ -e GENESYS_CLIENT_ID=DUMMY_VALUE \ From ff7fcee949cec4a3fc926a638fbf2a34a5a74245 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 3 Aug 2026 22:59:48 +0100 Subject: [PATCH 09/11] Retry smoke test --- .github/workflows/ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 431dbc2..f4e7305 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,10 +27,11 @@ jobs: # - run: pnpm run test - run: pnpm run build - name: Smoke test MCP server - run: pnpm dlx @modelcontextprotocol/inspector@2.0.0 --cli node servers/genesys-cloud-architect-mcp.js --method tools/list \ - -e PREVENT_LOGIN=TRUE \ - -e GENESYS_REGION=DUMMY_VALUE \ - -e GENESYS_CLIENT_ID=DUMMY_VALUE \ - -e GENESYS_CLIENT_SECRET=DUMMY_VALUE \ - -e DEPLOY_SCRIPT_PATH=DUMMY_VALUE \ - | grep -q '"flow_ir"' + run: > + pnpm dlx @modelcontextprotocol/inspector --cli node servers/genesys-cloud-architect-mcp.js --method tools/list + -e PREVENT_LOGIN=TRUE + -e GENESYS_REGION=DUMMY_VALUE + -e GENESYS_CLIENT_ID=DUMMY_VALUE + -e GENESYS_CLIENT_SECRET=DUMMY_VALUE + -e DEPLOY_SCRIPT_PATH=DUMMY_VALUE + | grep -q '"flow_ir"' From 7868eee0145d3afc3bf483394081e6e2c9a2f8e0 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 3 Aug 2026 23:15:35 +0100 Subject: [PATCH 10/11] Remove test scripts --- .github/workflows/ci.yml | 1 - package.json | 5 +- pnpm-lock.yaml | 744 --------------------------------------- 3 files changed, 1 insertion(+), 749 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4e7305..9b7910f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,6 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: pnpm run lint -# - run: pnpm run test - run: pnpm run build - name: Smoke test MCP server run: > diff --git a/package.json b/package.json index 7119ca2..ea3ade8 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,6 @@ "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", - "test": "vitest run", - "test:watch": "vitest", "lint": "biome check", "lint:fix": "biome check --write", "format": "biome format --write", @@ -29,7 +27,6 @@ "@types/node": "^25.8.0", "esbuild": "^0.25.0", "husky": "^9.1.7", - "typescript": "^5.8.0", - "vitest": "^4.1.10" + "typescript": "^5.8.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c74c57e..b4c82cb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,9 +39,6 @@ importers: typescript: specifier: ^5.8.0 version: 5.9.3 - vitest: - specifier: ^4.1.10 - version: 4.1.10(@types/node@25.9.0)(vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12)) packages: @@ -109,15 +106,6 @@ packages: '@dabh/diagnostics@2.0.8': resolution: {integrity: sha512-R4MSXTVnuMzGD7bzHdW2ZhhdPC/igELENcq5IjEverBvq5hn1SXCWcsi6eSsdWP0/Ur+SItRRjAktmdoX/8R/Q==} - '@emnapi/core@2.0.0-alpha.3': - resolution: {integrity: sha512-AZypUeJ/yByuxyS7BlSNRDOMLMlROYtjYdIAuBmJssVz1UJDSeYxLrdizhXCFYhedC5bqd/ASy8EuNXbVVXp9g==} - - '@emnapi/runtime@2.0.0-alpha.3': - resolution: {integrity: sha512-hFPAhMUjJD9BSyCANEISPOogeXC9Zo9ZQl7L6vKnaVsMkCtzznaW/naYypeyl0Gv5rYfWYsZbpixTMpjDJzQeA==} - - '@emnapi/wasi-threads@2.0.1': - resolution: {integrity: sha512-9DsSk+o5NBX0CCJT8s0EROGSGxjR/tKu6aBTaVyq+SjAEQH4XcdcRxPBRzsBLizTTJ49MJjF+jgu3qnO9GLQcQ==} - '@esbuild/aix-ppc64@0.25.12': resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} engines: {node: '>=18'} @@ -280,9 +268,6 @@ packages: peerDependencies: hono: ^4 - '@jridgewell/sourcemap-codec@1.5.5': - resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} - '@makingchatbots/genesys-cloud-architect-diagram-lib@1.1.0': resolution: {integrity: sha512-81sCC5Zr/Zhj40JlTehe9FEKqp1w4C/73d5qq/xFHn0scvGDI6Ipb+gbLHF0+nFTy3JKsIDq4Momw9IlAwJ5RQ==, tarball: https://npm.pkg.github.com/download/@makingchatbots/genesys-cloud-architect-diagram-lib/1.1.0/88e1dfee54e903c6178d770e09baaf6e40d19e62} engines: {node: '>=22.12'} @@ -297,166 +282,15 @@ packages: '@cfworker/json-schema': optional: true - '@napi-rs/wasm-runtime@1.2.2': - resolution: {integrity: sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==} - engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} - peerDependencies: - '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.3 - '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.3 - - '@oxc-project/types@0.142.0': - resolution: {integrity: sha512-7W+2q5AKQVU36fkaryontrHn3YDt1RyUYXatw9i5H8ocYe2sPKSFB6eS8WNPeRKiN1qAWWZUPm7gwFzJGrccqQ==} - - '@rolldown/binding-android-arm64@1.2.1': - resolution: {integrity: sha512-02hOeOSryYxVrOIphmLAsqnCJWxwlzFk+pEt/N/i6OgT3lShHO7xGCU5cpgchRDHboAEbSjzgGh+O/u1GswQmA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [android] - - '@rolldown/binding-darwin-arm64@1.2.1': - resolution: {integrity: sha512-fMsTOnN0OjFm3CyppWPitKnc8UlliVARUULW6cfU6AIqjdtgmSFWSk9vecHzZduv/yMWIHDlRhM1e8Iff9uAfA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [darwin] - - '@rolldown/binding-darwin-x64@1.2.1': - resolution: {integrity: sha512-1wjKdz/XLGKHaTNHjQveQ/B23TKx4ItAqm1JbyVuvNPc4Ze0Fb48s49TAd/2zcplPl8okE/UbTgmlVfwT7eFeQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [darwin] - - '@rolldown/binding-freebsd-x64@1.2.1': - resolution: {integrity: sha512-Fa0jHR07E7YBN4vOEsbVf2briYNsuOowfLJaXULZM0ldMlaCaj2LJgLMbMe4iacRyZmvR8efFhgR9wKuGclQUg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [freebsd] - - '@rolldown/binding-linux-arm-gnueabihf@1.2.1': - resolution: {integrity: sha512-pzkgu1SSHGgRRyRZ4fbmSgmajbVt+epaLP99NDjFft69v/ypfTi6swBMiVdh2EkQ0OSnHE1lZDM7DRGkyAzUpA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm] - os: [linux] - - '@rolldown/binding-linux-arm64-gnu@1.2.1': - resolution: {integrity: sha512-QI5SEDY8cbiYWHx0VO4vIc3UlS6a32vXHjU8Qy/17adEmZIPuByJg13UEvo9c/UCiUkdcVWY83C+b+JrwnNyUg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-arm64-musl@1.2.1': - resolution: {integrity: sha512-Sm41FyCeXqmYcERoYOCbGIL5hNfd8w9LQ7Y61Bev48HkcjaJqV/iiVOaiDxjVTRMS+QKrZmD8cfPt4uMVnvM+A==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@rolldown/binding-linux-ppc64-gnu@1.2.1': - resolution: {integrity: sha512-2x+WhXTGl9yJYPbltW/BSEPTVz9OIWQyER4N+gJEDWkkn904eRcBzELqh/Hf7K0w/ubGbKNMv0ZC+94QK/IFEg==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-s390x-gnu@1.2.1': - resolution: {integrity: sha512-eEjmQpuRQayHPWWnywaWHkFT3ToPbP3RYy42VVd/B9aBGDA+Ol25EIWHxKQST3IiWJjikCWUF7KtbfqwZrzVwQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-x64-gnu@1.2.1': - resolution: {integrity: sha512-/Orga1fZYkLc/56jBICcHrKchl8Z2UKdDSr3LG9ToWO1lQ6a4Livk9Xz+9WN91zsz5QR3XQz2NNoSDEvP6qadw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@rolldown/binding-linux-x64-musl@1.2.1': - resolution: {integrity: sha512-xxBJRL+0q0Kce7orznGWLuylHDY65vuARXZRpX+hPdv+DqK2c3NlCsVA98tlWzWNEE7yPqA/1NQ5nnCrj49Y5A==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [linux] - libc: [musl] - - '@rolldown/binding-openharmony-arm64@1.2.1': - resolution: {integrity: sha512-M6AdXIXw3s+/8XpKMzdGDEXGS1S7kwUsy+rcTIUIOx5Ge4nXKCtAFHFV9YKkXvGcC5WMoTjAteLzlsQROVI0Yw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [openharmony] - - '@rolldown/binding-wasm32-wasi@1.2.1': - resolution: {integrity: sha512-/TX0SoRGojHzSAHpfVBbavRVSazg5U3h3Y3VXfcc0cdugq6kxdqw8LPGFiPr+/7gE/60zRcsOY2Vi9b9eT0jww==} - engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} - - '@rolldown/binding-win32-arm64-msvc@1.2.1': - resolution: {integrity: sha512-EvRrivJieyHG+AO9lleZWgq+g0+S7oV2C51yuqlcyU/R9net+sI4Pj0F+lUoP2bEr6TWX3SqFaaS0SzfLxSzkw==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [arm64] - os: [win32] - - '@rolldown/binding-win32-x64-msvc@1.2.1': - resolution: {integrity: sha512-Z4eCmn5QJ/5+azF9knpLWKfVd9aidn0mAe9TpJgvBLId9Ax3t0+JVxBmT25Bv7NBbVW1TZyKjQjQReouMeH5UQ==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [x64] - os: [win32] - - '@rolldown/pluginutils@1.0.1': - resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} - '@so-ric/colorspace@1.1.6': resolution: {integrity: sha512-/KiKkpHNOBgkFJwu9sh48LkHSMYGyuTcSFK/qMBdnOAlrRJzRSXAOFB5qwzaVQuDl8wAvHVMkaASQDReTahxuw==} - '@standard-schema/spec@1.1.0': - resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - - '@tybys/wasm-util@0.10.3': - resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} - - '@types/chai@5.2.3': - resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} - - '@types/deep-eql@4.0.2': - resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} - - '@types/estree@1.0.9': - resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} - '@types/node@25.9.0': resolution: {integrity: sha512-AOQwYUNolgy3VosiRqXrACUXTN8nJUtPl7FJXMqZVyxiiCLhQuG3jXKvCS1ALr+Y2OmZhzzLVlYPEqJaiqkaJQ==} '@types/triple-beam@1.3.5': resolution: {integrity: sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==} - '@vitest/expect@4.1.10': - resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==} - - '@vitest/mocker@4.1.10': - resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==} - peerDependencies: - msw: ^2.4.9 - vite: ^6.0.0 || ^7.0.0 || ^8.0.0 - peerDependenciesMeta: - msw: - optional: true - vite: - optional: true - - '@vitest/pretty-format@4.1.10': - resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==} - - '@vitest/runner@4.1.10': - resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==} - - '@vitest/snapshot@4.1.10': - resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==} - - '@vitest/spy@4.1.10': - resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==} - - '@vitest/utils@4.1.10': - resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==} - accepts@2.0.0: resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} engines: {node: '>= 0.6'} @@ -476,10 +310,6 @@ packages: ajv@8.20.0: resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} - assertion-error@2.0.1: - resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} - engines: {node: '>=12'} - async@3.2.6: resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} @@ -505,10 +335,6 @@ packages: resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} engines: {node: '>= 0.4'} - chai@6.2.2: - resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} - engines: {node: '>=18'} - color-convert@3.1.3: resolution: {integrity: sha512-fasDH2ont2GqF5HpyO4w0+BcewlhHEZOFn9c1ckZdHpJ56Qb7MHhH/IcJZbBGgvdtwdwNbLvxiBEdg336iA9Sg==} engines: {node: '>=14.6'} @@ -544,9 +370,6 @@ packages: resolution: {integrity: sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==} engines: {node: '>=18'} - convert-source-map@2.0.0: - resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - cookie-signature@1.2.2: resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} engines: {node: '>=6.6.0'} @@ -580,10 +403,6 @@ packages: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} - detect-libc@2.1.2: - resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} - engines: {node: '>=8'} - dunder-proto@1.0.1: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} @@ -606,9 +425,6 @@ packages: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} - es-module-lexer@2.3.1: - resolution: {integrity: sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA==} - es-object-atoms@1.1.1: resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} engines: {node: '>= 0.4'} @@ -625,9 +441,6 @@ packages: escape-html@1.0.3: resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} - estree-walker@3.0.3: - resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - etag@1.8.1: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} @@ -640,10 +453,6 @@ packages: resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==} engines: {node: '>=18.0.0'} - expect-type@1.4.0: - resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} - engines: {node: '>=12.0.0'} - express-rate-limit@8.5.2: resolution: {integrity: sha512-5Kb34ipNX694DH48vN9irak1Qx30nb0PLYHXfJgw4YEjiC3ZEmZJhwOp+VfiCYwFzvFTdB9QkArYS5kXa2cx2A==} engines: {node: '>= 16'} @@ -660,15 +469,6 @@ packages: fast-uri@3.1.2: resolution: {integrity: sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==} - fdir@6.5.0: - resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} - engines: {node: '>=12.0.0'} - peerDependencies: - picomatch: ^3 || ^4 - peerDependenciesMeta: - picomatch: - optional: true - fecha@4.2.3: resolution: {integrity: sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==} @@ -700,11 +500,6 @@ packages: resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} engines: {node: '>= 0.8'} - fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} @@ -786,87 +581,10 @@ packages: kuler@2.0.0: resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==} - lightningcss-android-arm64@1.33.0: - resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [android] - - lightningcss-darwin-arm64@1.33.0: - resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [darwin] - - lightningcss-darwin-x64@1.33.0: - resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [darwin] - - lightningcss-freebsd-x64@1.33.0: - resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [freebsd] - - lightningcss-linux-arm-gnueabihf@1.33.0: - resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm] - os: [linux] - - lightningcss-linux-arm64-gnu@1.33.0: - resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - lightningcss-linux-arm64-musl@1.33.0: - resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [linux] - libc: [musl] - - lightningcss-linux-x64-gnu@1.33.0: - resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [glibc] - - lightningcss-linux-x64-musl@1.33.0: - resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [linux] - libc: [musl] - - lightningcss-win32-arm64-msvc@1.33.0: - resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} - engines: {node: '>= 12.0.0'} - cpu: [arm64] - os: [win32] - - lightningcss-win32-x64-msvc@1.33.0: - resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} - engines: {node: '>= 12.0.0'} - cpu: [x64] - os: [win32] - - lightningcss@1.33.0: - resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} - engines: {node: '>= 12.0.0'} - logform@2.7.0: resolution: {integrity: sha512-TFYA4jnP7PVbmlBIfhlSe+WKxs9dklXMTEGcBCIvLhE/Tn3H6Gk1norupVW7m5Cnd4bLcr08AytbyV/xj7f/kQ==} engines: {node: '>= 12.0.0'} - magic-string@0.30.21: - resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} engines: {node: '>= 0.4'} @@ -905,11 +623,6 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - nanoid@3.3.16: - resolution: {integrity: sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - negotiator@1.0.0: resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} engines: {node: '>= 0.6'} @@ -922,10 +635,6 @@ packages: resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} engines: {node: '>= 0.4'} - obug@2.1.4: - resolution: {integrity: sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==} - engines: {node: '>=12.20.0'} - on-finished@2.4.1: resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} engines: {node: '>= 0.8'} @@ -947,24 +656,10 @@ packages: path-to-regexp@8.4.2: resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} - pathe@2.0.3: - resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - - picocolors@1.1.1: - resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - - picomatch@4.0.5: - resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} - engines: {node: '>=12'} - pkce-challenge@5.0.1: resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} engines: {node: '>=16.20.0'} - postcss@8.5.25: - resolution: {integrity: sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==} - engines: {node: ^10 || ^12 || >=14} - proxy-addr@2.0.7: resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} engines: {node: '>= 0.10'} @@ -1000,11 +695,6 @@ packages: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} - rolldown@1.2.1: - resolution: {integrity: sha512-4FKJhg8d3OiyQOA6Q1Q0hoFFpW9/OoX+VsHzpECsdsIZoOArrAK90gl59YK/Z+gnDel45bgJZK03ozH/9bCqEw==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - router@2.2.0: resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} engines: {node: '>= 18'} @@ -1054,47 +744,19 @@ packages: resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} engines: {node: '>= 0.4'} - siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - - source-map-js@1.2.1: - resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} - engines: {node: '>=0.10.0'} - stack-trace@0.0.10: resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==} - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - statuses@2.0.2: resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} engines: {node: '>= 0.8'} - std-env@4.2.0: - resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==} - string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} text-hex@1.0.0: resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==} - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - - tinyexec@1.2.4: - resolution: {integrity: sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==} - engines: {node: '>=18'} - - tinyglobby@0.2.17: - resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} - engines: {node: '>=12.0.0'} - - tinyrainbow@3.1.1: - resolution: {integrity: sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==} - engines: {node: '>=14.0.0'} - toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} @@ -1103,9 +765,6 @@ packages: resolution: {integrity: sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==} engines: {node: '>= 14.0.0'} - tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - type-is@2.1.0: resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} engines: {node: '>= 18'} @@ -1129,100 +788,11 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} - vite@8.2.0: - resolution: {integrity: sha512-pn+CFpM0lwDeKwmOq1ZaBK/9sjorZcgqxki6MbY/jPEVd9vichIlmlD4HmQ5wdP5EgqQCFRaACBxMC7uEGc6lQ==} - engines: {node: ^20.19.0 || >=22.12.0} - hasBin: true - peerDependencies: - '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.4.0 - esbuild: ^0.27.0 || ^0.28.0 - jiti: '>=1.21.0' - less: ^4.0.0 - sass: ^1.70.0 - sass-embedded: ^1.70.0 - stylus: '>=0.54.8' - sugarss: ^5.0.0 - terser: ^5.16.0 - tsx: ^4.8.1 - yaml: ^2.4.2 - peerDependenciesMeta: - '@types/node': - optional: true - '@vitejs/devtools': - optional: true - esbuild: - optional: true - jiti: - optional: true - less: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - tsx: - optional: true - yaml: - optional: true - - vitest@4.1.10: - resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==} - engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@opentelemetry/api': ^1.9.0 - '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.10 - '@vitest/browser-preview': 4.1.10 - '@vitest/browser-webdriverio': 4.1.10 - '@vitest/coverage-istanbul': 4.1.10 - '@vitest/coverage-v8': 4.1.10 - '@vitest/ui': 4.1.10 - happy-dom: '*' - jsdom: '*' - vite: ^6.0.0 || ^7.0.0 || ^8.0.0 - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@opentelemetry/api': - optional: true - '@types/node': - optional: true - '@vitest/browser-playwright': - optional: true - '@vitest/browser-preview': - optional: true - '@vitest/browser-webdriverio': - optional: true - '@vitest/coverage-istanbul': - optional: true - '@vitest/coverage-v8': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} hasBin: true - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} - hasBin: true - winston-transport@4.9.0: resolution: {integrity: sha512-8drMJ4rkgaPo1Me4zD/3WLfI/zPdA9o2IipKODunnGDcuqbHwjsbB79ylv04LCGGzU0xQ6vTznOMpQGaLhhm6A==} engines: {node: '>= 12.0.0'} @@ -1299,22 +869,6 @@ snapshots: enabled: 2.0.0 kuler: 2.0.0 - '@emnapi/core@2.0.0-alpha.3': - dependencies: - '@emnapi/wasi-threads': 2.0.1 - tslib: 2.8.1 - optional: true - - '@emnapi/runtime@2.0.0-alpha.3': - dependencies: - tslib: 2.8.1 - optional: true - - '@emnapi/wasi-threads@2.0.1': - dependencies: - tslib: 2.8.1 - optional: true - '@esbuild/aix-ppc64@0.25.12': optional: true @@ -1397,8 +951,6 @@ snapshots: dependencies: hono: 4.12.19 - '@jridgewell/sourcemap-codec@1.5.5': {} - '@makingchatbots/genesys-cloud-architect-diagram-lib@1.1.0': {} '@modelcontextprotocol/sdk@1.29.0(zod@4.4.3)': @@ -1423,134 +975,17 @@ snapshots: transitivePeerDependencies: - supports-color - '@napi-rs/wasm-runtime@1.2.2(@emnapi/core@2.0.0-alpha.3)(@emnapi/runtime@2.0.0-alpha.3)': - dependencies: - '@emnapi/core': 2.0.0-alpha.3 - '@emnapi/runtime': 2.0.0-alpha.3 - '@tybys/wasm-util': 0.10.3 - optional: true - - '@oxc-project/types@0.142.0': {} - - '@rolldown/binding-android-arm64@1.2.1': - optional: true - - '@rolldown/binding-darwin-arm64@1.2.1': - optional: true - - '@rolldown/binding-darwin-x64@1.2.1': - optional: true - - '@rolldown/binding-freebsd-x64@1.2.1': - optional: true - - '@rolldown/binding-linux-arm-gnueabihf@1.2.1': - optional: true - - '@rolldown/binding-linux-arm64-gnu@1.2.1': - optional: true - - '@rolldown/binding-linux-arm64-musl@1.2.1': - optional: true - - '@rolldown/binding-linux-ppc64-gnu@1.2.1': - optional: true - - '@rolldown/binding-linux-s390x-gnu@1.2.1': - optional: true - - '@rolldown/binding-linux-x64-gnu@1.2.1': - optional: true - - '@rolldown/binding-linux-x64-musl@1.2.1': - optional: true - - '@rolldown/binding-openharmony-arm64@1.2.1': - optional: true - - '@rolldown/binding-wasm32-wasi@1.2.1': - dependencies: - '@emnapi/core': 2.0.0-alpha.3 - '@emnapi/runtime': 2.0.0-alpha.3 - '@napi-rs/wasm-runtime': 1.2.2(@emnapi/core@2.0.0-alpha.3)(@emnapi/runtime@2.0.0-alpha.3) - optional: true - - '@rolldown/binding-win32-arm64-msvc@1.2.1': - optional: true - - '@rolldown/binding-win32-x64-msvc@1.2.1': - optional: true - - '@rolldown/pluginutils@1.0.1': {} - '@so-ric/colorspace@1.1.6': dependencies: color: 5.0.3 text-hex: 1.0.0 - '@standard-schema/spec@1.1.0': {} - - '@tybys/wasm-util@0.10.3': - dependencies: - tslib: 2.8.1 - optional: true - - '@types/chai@5.2.3': - dependencies: - '@types/deep-eql': 4.0.2 - assertion-error: 2.0.1 - - '@types/deep-eql@4.0.2': {} - - '@types/estree@1.0.9': {} - '@types/node@25.9.0': dependencies: undici-types: 7.24.6 '@types/triple-beam@1.3.5': {} - '@vitest/expect@4.1.10': - dependencies: - '@standard-schema/spec': 1.1.0 - '@types/chai': 5.2.3 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 - chai: 6.2.2 - tinyrainbow: 3.1.1 - - '@vitest/mocker@4.1.10(vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12))': - dependencies: - '@vitest/spy': 4.1.10 - estree-walker: 3.0.3 - magic-string: 0.30.21 - optionalDependencies: - vite: 8.2.0(@types/node@25.9.0)(esbuild@0.25.12) - - '@vitest/pretty-format@4.1.10': - dependencies: - tinyrainbow: 3.1.1 - - '@vitest/runner@4.1.10': - dependencies: - '@vitest/utils': 4.1.10 - pathe: 2.0.3 - - '@vitest/snapshot@4.1.10': - dependencies: - '@vitest/pretty-format': 4.1.10 - '@vitest/utils': 4.1.10 - magic-string: 0.30.21 - pathe: 2.0.3 - - '@vitest/spy@4.1.10': {} - - '@vitest/utils@4.1.10': - dependencies: - '@vitest/pretty-format': 4.1.10 - convert-source-map: 2.0.0 - tinyrainbow: 3.1.1 - accepts@2.0.0: dependencies: mime-types: 3.0.2 @@ -1573,8 +1008,6 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 - assertion-error@2.0.1: {} - async@3.2.6: {} asynckit@0.4.0: {} @@ -1615,8 +1048,6 @@ snapshots: call-bind-apply-helpers: 1.0.2 get-intrinsic: 1.3.0 - chai@6.2.2: {} - color-convert@3.1.3: dependencies: color-name: 2.1.0 @@ -1646,8 +1077,6 @@ snapshots: content-type@2.0.0: {} - convert-source-map@2.0.0: {} - cookie-signature@1.2.2: {} cookie@0.7.2: {} @@ -1671,8 +1100,6 @@ snapshots: depd@2.0.0: {} - detect-libc@2.1.2: {} - dunder-proto@1.0.1: dependencies: call-bind-apply-helpers: 1.0.2 @@ -1689,8 +1116,6 @@ snapshots: es-errors@1.3.0: {} - es-module-lexer@2.3.1: {} - es-object-atoms@1.1.1: dependencies: es-errors: 1.3.0 @@ -1733,10 +1158,6 @@ snapshots: escape-html@1.0.3: {} - estree-walker@3.0.3: - dependencies: - '@types/estree': 1.0.9 - etag@1.8.1: {} eventsource-parser@3.0.8: {} @@ -1745,8 +1166,6 @@ snapshots: dependencies: eventsource-parser: 3.0.8 - expect-type@1.4.0: {} - express-rate-limit@8.5.2(express@5.2.1): dependencies: express: 5.2.1 @@ -1789,10 +1208,6 @@ snapshots: fast-uri@3.1.2: {} - fdir@6.5.0(picomatch@4.0.5): - optionalDependencies: - picomatch: 4.0.5 - fecha@4.2.3: {} finalhandler@2.1.1: @@ -1822,9 +1237,6 @@ snapshots: fresh@2.0.0: {} - fsevents@2.3.3: - optional: true - function-bind@1.1.2: {} get-intrinsic@1.3.0: @@ -1900,55 +1312,6 @@ snapshots: kuler@2.0.0: {} - lightningcss-android-arm64@1.33.0: - optional: true - - lightningcss-darwin-arm64@1.33.0: - optional: true - - lightningcss-darwin-x64@1.33.0: - optional: true - - lightningcss-freebsd-x64@1.33.0: - optional: true - - lightningcss-linux-arm-gnueabihf@1.33.0: - optional: true - - lightningcss-linux-arm64-gnu@1.33.0: - optional: true - - lightningcss-linux-arm64-musl@1.33.0: - optional: true - - lightningcss-linux-x64-gnu@1.33.0: - optional: true - - lightningcss-linux-x64-musl@1.33.0: - optional: true - - lightningcss-win32-arm64-msvc@1.33.0: - optional: true - - lightningcss-win32-x64-msvc@1.33.0: - optional: true - - lightningcss@1.33.0: - dependencies: - detect-libc: 2.1.2 - optionalDependencies: - lightningcss-android-arm64: 1.33.0 - lightningcss-darwin-arm64: 1.33.0 - lightningcss-darwin-x64: 1.33.0 - lightningcss-freebsd-x64: 1.33.0 - lightningcss-linux-arm-gnueabihf: 1.33.0 - lightningcss-linux-arm64-gnu: 1.33.0 - lightningcss-linux-arm64-musl: 1.33.0 - lightningcss-linux-x64-gnu: 1.33.0 - lightningcss-linux-x64-musl: 1.33.0 - lightningcss-win32-arm64-msvc: 1.33.0 - lightningcss-win32-x64-msvc: 1.33.0 - logform@2.7.0: dependencies: '@colors/colors': 1.6.0 @@ -1958,10 +1321,6 @@ snapshots: safe-stable-stringify: 2.5.0 triple-beam: 1.4.1 - magic-string@0.30.21: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - math-intrinsics@1.1.0: {} media-typer@1.1.0: {} @@ -1988,16 +1347,12 @@ snapshots: ms@2.1.3: {} - nanoid@3.3.16: {} - negotiator@1.0.0: {} object-assign@4.1.1: {} object-inspect@1.13.4: {} - obug@2.1.4: {} - on-finished@2.4.1: dependencies: ee-first: 1.1.1 @@ -2016,20 +1371,8 @@ snapshots: path-to-regexp@8.4.2: {} - pathe@2.0.3: {} - - picocolors@1.1.1: {} - - picomatch@4.0.5: {} - pkce-challenge@5.0.1: {} - postcss@8.5.25: - dependencies: - nanoid: 3.3.16 - picocolors: 1.1.1 - source-map-js: 1.2.1 - proxy-addr@2.0.7: dependencies: forwarded: 0.2.0 @@ -2075,27 +1418,6 @@ snapshots: require-from-string@2.0.2: {} - rolldown@1.2.1: - dependencies: - '@oxc-project/types': 0.142.0 - '@rolldown/pluginutils': 1.0.1 - optionalDependencies: - '@rolldown/binding-android-arm64': 1.2.1 - '@rolldown/binding-darwin-arm64': 1.2.1 - '@rolldown/binding-darwin-x64': 1.2.1 - '@rolldown/binding-freebsd-x64': 1.2.1 - '@rolldown/binding-linux-arm-gnueabihf': 1.2.1 - '@rolldown/binding-linux-arm64-gnu': 1.2.1 - '@rolldown/binding-linux-arm64-musl': 1.2.1 - '@rolldown/binding-linux-ppc64-gnu': 1.2.1 - '@rolldown/binding-linux-s390x-gnu': 1.2.1 - '@rolldown/binding-linux-x64-gnu': 1.2.1 - '@rolldown/binding-linux-x64-musl': 1.2.1 - '@rolldown/binding-openharmony-arm64': 1.2.1 - '@rolldown/binding-wasm32-wasi': 1.2.1 - '@rolldown/binding-win32-arm64-msvc': 1.2.1 - '@rolldown/binding-win32-x64-msvc': 1.2.1 - router@2.2.0: dependencies: debug: 4.4.3 @@ -2173,42 +1495,20 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 - siginfo@2.0.0: {} - - source-map-js@1.2.1: {} - stack-trace@0.0.10: {} - stackback@0.0.2: {} - statuses@2.0.2: {} - std-env@4.2.0: {} - string_decoder@1.3.0: dependencies: safe-buffer: 5.2.1 text-hex@1.0.0: {} - tinybench@2.9.0: {} - - tinyexec@1.2.4: {} - - tinyglobby@0.2.17: - dependencies: - fdir: 6.5.0(picomatch@4.0.5) - picomatch: 4.0.5 - - tinyrainbow@3.1.1: {} - toidentifier@1.0.1: {} triple-beam@1.4.1: {} - tslib@2.8.1: - optional: true - type-is@2.1.0: dependencies: content-type: 2.0.0 @@ -2225,54 +1525,10 @@ snapshots: vary@1.1.2: {} - vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12): - dependencies: - lightningcss: 1.33.0 - picomatch: 4.0.5 - postcss: 8.5.25 - rolldown: 1.2.1 - tinyglobby: 0.2.17 - optionalDependencies: - '@types/node': 25.9.0 - esbuild: 0.25.12 - fsevents: 2.3.3 - - vitest@4.1.10(@types/node@25.9.0)(vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12)): - dependencies: - '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(vite@8.2.0(@types/node@25.9.0)(esbuild@0.25.12)) - '@vitest/pretty-format': 4.1.10 - '@vitest/runner': 4.1.10 - '@vitest/snapshot': 4.1.10 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 - es-module-lexer: 2.3.1 - expect-type: 1.4.0 - magic-string: 0.30.21 - obug: 2.1.4 - pathe: 2.0.3 - picomatch: 4.0.5 - std-env: 4.2.0 - tinybench: 2.9.0 - tinyexec: 1.2.4 - tinyglobby: 0.2.17 - tinyrainbow: 3.1.1 - vite: 8.2.0(@types/node@25.9.0)(esbuild@0.25.12) - why-is-node-running: 2.3.0 - optionalDependencies: - '@types/node': 25.9.0 - transitivePeerDependencies: - - msw - which@2.0.2: dependencies: isexe: 2.0.0 - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - winston-transport@4.9.0: dependencies: logform: 2.7.0 From 7941ae9396e55abef50f1f4e8d71fdceea86c9fa Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 3 Aug 2026 23:18:43 +0100 Subject: [PATCH 11/11] Increase version --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- docs/development.md | 7 ------- package.json | 2 +- servers/genesys-cloud-architect-mcp.js | 2 +- 5 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 1db7a49..61b5b80 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -10,7 +10,7 @@ "name": "genesys-cloud-architect", "source": "./", "description": "Create, test, and debug Genesys Cloud Architect flows", - "version": "1.0.4" + "version": "1.0.5" } ] } diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 59cbabf..6eb5dde 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "genesys-cloud-architect", "description": "Create, test, and debug Genesys Cloud Architect flows", - "version": "1.0.4", + "version": "1.0.5", "author": { "name": "Lucas Woodward", "url": "https://makingchatbots.com/" diff --git a/docs/development.md b/docs/development.md index ad2ba98..64cd4c3 100644 --- a/docs/development.md +++ b/docs/development.md @@ -12,13 +12,6 @@ Debug the plugin: CLAUDE_PLUGIN_ROOT=$(pwd) claude --plugin-dir . --debug ``` -Run the tests: - -```shell -pnpm test -pnpm test:watch -``` - To aid in the development of the MCP server install the MCP Server Skill: ``` diff --git a/package.json b/package.json index ea3ade8..d3f9410 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "genesys-cloud-architect", - "version": "1.0.4", + "version": "1.0.5", "private": true, "packageManager": "pnpm@11.1.3+sha512.c85357fe17ca12dd23dd7071822666dfd7e3cb76fe214e3370b5ea2fb34f2a231185509b63e717f3cd0acb38dd3f8d82bcd5e8172400ae678b70ea4fbed0896d", "scripts": { diff --git a/servers/genesys-cloud-architect-mcp.js b/servers/genesys-cloud-architect-mcp.js index 319f46e..b2a776a 100644 --- a/servers/genesys-cloud-architect-mcp.js +++ b/servers/genesys-cloud-architect-mcp.js @@ -159,7 +159,7 @@ ${s.warnings.join(` `)}`),l({content:[{type:"text",text:f.join(` `)+m}]})}else{let f=s?.error??`Deploy runner exited with code ${h}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${f}${m}`}]})}})})}});function yR(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function jX(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:yR(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var PR=({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:ti.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=yR(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=jX(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 Il=t=>`${t}::start`,gy=(t,e)=>`${t}::${e}`;function SX(t,e,i,n){let a=new Set(e.backEdges.map(p=>`${p.from} ${p.to}`)),r=new Map,s=new Map;for(let p of t.nodes.keys())r.set(p,[]),s.set(p,new Set);for(let p of t.edges){let d=r.get(p.to);if(!d)continue;let h=a.has(`${p.from} ${p.to}`),g=`${p.from} ${p.label??""} ${h}`,m=s.get(p.to);m&&!m.has(g)&&(m.add(g),d.push({id:p.from,label:p.label,backEdge:h}))}let o=-1;for(let p of e.order.values())p>o&&(o=p);let l=o+1,u=[];for(let[p,d]of t.nodes){let h=e.order.has(p),g=h?e.order.get(p):l++;u.push({id:p,kind:d.kind,actionType:d.actionType,label:d.label,description:d.description,predecessors:r.get(p)??[],order:g,taskId:d.taskId,taskName:d.taskName,reachable:h,terminal:d.terminal})}u.sort((p,d)=>p.order-d.order);let c=i.taskOrder.flatMap(p=>{let d=i.tasks.get(p);return d?[{id:p,name:d.name,reusable:i.reusableTaskIds.has(p)}]:[]});return{flowName:i.flowName,flowType:i.flowType,entryTaskId:i.entryTaskId,reachabilityIsComplete:n,tasks:c,nodes:u}}function OX(t,e){let i=t;for(let n of e.split(".")){if(i==null||typeof i!="object")return;i=i[n]}return typeof i=="string"&&i.length>0?i:void 0}function Yn(t,e){for(let i of e){let n=OX(t,i);if(n!==void 0)return n}}function jR(t){let e=t.expression;if(e==null||typeof e!="object")return;let{text:i,type:n}=e;if(typeof i=="string"&&i.trim().length>0)return i;if(typeof n=="string"&&n.length>0)return n}function fy(t,e){let i=t.find(n=>n.outputId===e);return i?(i.terminal=!0,t):[{outputId:e,label:OR(e),synthetic:!0,terminal:!0},...t]}var Hl={isTerminal:()=>!0,outputs:()=>[]},xX={isTerminal:()=>!0,describe:t=>Yn(t,["transferTo","group.text","flowName","externalNumber.text","user.text","transferTarget.text","transferTargetGroup.text","queues.0.text"]),outputs:t=>fy(Rl(t).map(ws),"__SUCCESS__")},TX={isTerminal:()=>!1,outputs:t=>{let e=t.path;if(!e||typeof e!="object")return[];let i=ws(e,0);return i.outputId="__LOOP__",typeof e.label=="string"&&e.label.length>0||(i.label="Loop"),[i]}},MX={outputs:t=>fy(Rl(t).map(ws),"__SUCCESS__")},EX={isTerminal:()=>!0,describe:t=>Yn(t,["flowName"]),outputs:t=>fy(Rl(t).map(ws),"__DISCONNECT__")},kX={outputs:t=>{let e=Rl(t);return e.length>0?[ws(e[0],0)]:[]}},Qn=t=>({describe:t}),my={DisconnectAction:Hl,EndFlowAction:Hl,EndTaskAction:Hl,EndStateAction:Hl,ExitBotFlowAction:Hl,LoopAction:TX,ProcessVoicemailInputAction:MX,CallBotFlowAction:EX,AskForNLUNextIntentAction:kX,WaitForInputAction:{},CallTaskAction:{},TaskAction:{},TransferMenuAction:{},TransferTaskAction:{},LoopUntilAction:{},DecisionAction:Qn(jR),SwitchAction:Qn(jR),DataAction:Qn(t=>Yn(t,["actionName"])),DataTableLookupAction:Qn(t=>Yn(t,["datatableName"])),CallCommonModuleAction:Qn(t=>Yn(t,["flowName"])),CallBotConnectorAction:Qn(t=>Yn(t,["botName"])),CallDigitalBotFlowAction:Qn(t=>Yn(t,["flowName"])),AddFlowMilestoneAction:Qn(t=>Yn(t,["milestoneName"])),ScreenPopAction:Qn(t=>Yn(t,["inputs.0.value.text"])),PlayAudioAction:Qn(t=>Yn(t,["prompts.defaultAudio.text"])),UpdateVariableAction:{},SetAttributesAction:{},GetAttributesAction:{},EvaluateScheduleAction:{},CollectInputAction:{},GetResponseAction:{},AskForBooleanAction:{},AskForSlotAction:{},CommunicateAction:{},DigitalMenuAction:{},SendResponseAction:{},TranscriptionAction:{},FindQueueAction:{},FindUserPromptAction:{},SetWhisperAudio:{},BridgeServerAction:{}};function hy(t){return typeof t=="string"&&t.length>0}function Rl(t){let e=[];if(Array.isArray(t.paths))for(let i of t.paths)i&&typeof i=="object"&&e.push(i);return t.path&&typeof t.path=="object"&&e.push(t.path),e}function OR(t){let e=t.replace(/^__/,"").replace(/__$/,"");if(e.length===0)return t;let i=e.toLowerCase();return i.charAt(0).toUpperCase()+i.slice(1)}function ws(t,e){let i=t.outputId??`__OUTPUT_${e}__`,n=typeof t.label=="string"&&t.label.length>0?t.label:OR(i),a={outputId:i,label:n,nextActionId:t.nextActionId,synthetic:!1,terminal:!1};return t.enabled===!1&&(a.disabled=!0),a}var qX=["taskReference","menuReference"],SR={describe:()=>{},outputs:t=>Rl(t).map(ws),isTerminal:()=>!1,referencedTaskIds:t=>{let e=[];for(let i of qX){let n=t[i];typeof n=="string"&&n.length>0&&e.push(n)}return e}},_X=new Set(["TransferMenuAction","TransferTaskAction"]);function xR(t){return typeof t=="string"&&t.startsWith("Transfer")&&!_X.has(t)}function HX(t){return t?t in my||xR(t):!1}function IX(t){let e=xR(t)?{...SR,...xX}:SR,i=t&&t in my?my[t]:void 0;return i?{...e,...i}:e}function*TR(t){for(let e of t.taskOrder){let i=t.tasks.get(e);if(i)for(let n of i.orderedActions)typeof n.id=="string"&&(yield{taskId:e,task:i,action:n,actionId:n.id,handler:IX(n.__type)})}}function RX(t){let e=[],i=[];for(let n of t.taskOrder){let a=t.tasks.get(n);if(a){hy(a.startAction)&&e.push({from:Il(n),to:a.startAction,kind:"fallthrough"});for(let r of a.menuChoices)e.push({from:Il(n),to:r.actionId,kind:"reference",label:r.label})}}for(let{taskId:n,actionId:a,action:r,handler:s}of TR(t)){let o=s.isTerminal(r);hy(r.nextAction)&&!o&&e.push({from:a,to:r.nextAction,kind:"fallthrough"});for(let l of s.outputs(r)){let u=gy(a,l.outputId);e.push({from:a,to:u,kind:"branch",label:l.label}),hy(l.nextActionId)&&!l.terminal&&e.push({from:u,to:l.nextActionId,kind:l.outputId==="__LOOP__"?"loop":"branch"})}for(let l of s.referencedTaskIds(r)){let u=t.tasks.get(l);u?e.push({from:a,to:Il(l),kind:"reference",label:u.name}):i.push({code:"UNRESOLVED_REFERENCE",message:`Reference from ${a} to task ${l} is unresolvable.`,nodeId:a,taskId:n})}}return{edges:e,warnings:i}}function zX(t,e,i){let n=new Map;for(let u of t)n.set(u.id,u);let a=new Map;for(let u of n.keys())a.set(u,[]);let r=[],s=[],o=[];for(let u of e){let c=n.has(u.from),p=n.has(u.to);if(!c||!p){let d=c?`unknown target node "${u.to}"`:`unknown source node "${u.from}"`;s.push({...u,reason:d}),o.push({code:"DROPPED_EDGE",message:`Dropped ${u.kind} edge ${u.from} \u2192 ${u.to}: ${d}.`});continue}r.push(u),a.get(u.from)?.push(u.to)}let l=i.taskOrder.map(Il).filter(u=>n.has(u));return{graph:{nodes:n,edges:r,adjacency:a,roots:l,dropped:s},warnings:o}}function DX(t,e,i){let n=[],a=[];if(Array.isArray(t.actionList))for(let r of t.actionList)r&&typeof r=="object"&&n.push(r);if(Array.isArray(t.menuChoiceList))for(let r of t.menuChoiceList){let s=r?.action;if(!s||typeof s!="object")continue;if(typeof s.id!="string"){i.push({code:"MISSING_ACTION_ID",message:`Menu-choice action of type "${s.__type??"(missing)"}" in task ${e} has no id and was skipped.`,taskId:e});continue}n.push(s);let o=typeof r.name=="string"&&r.name.length>0?r.name:s.name??s.id;a.push({actionId:s.id,label:o})}return{orderedActions:n,menuChoices:a}}function GX(t){if(typeof t=="string")return t;if(t&&typeof t=="object"){let e=t.id;if(typeof e=="string")return e}}function $X(t){let e=[],i=new Map,n=Array.isArray(t.flowSequenceItemList)?t.flowSequenceItemList:[];for(let p of n){if(!p||typeof p!="object"||typeof p.id!="string")continue;let d=typeof p.name=="string"&&p.name.length>0?p.name:p.id,{orderedActions:h,menuChoices:g}=DX(p,p.id,e);i.set(p.id,{id:p.id,name:d,startAction:typeof p.startAction=="string"?p.startAction:void 0,orderedActions:h,menuChoices:g})}let a=new Set;for(let{id:p,orderedActions:d}of i.values())for(let h of d){if(typeof h.id!="string"){e.push({code:"MISSING_ACTION_ID",message:`Action of type "${h.__type??"(missing)"}" in task ${p} has no id and was skipped.`,taskId:p});continue}a.has(h.id)&&e.push({code:"DUPLICATE_ACTION_ID",message:`Duplicate action id "${h.id}" in task ${p}; the later definition wins.`,nodeId:h.id,taskId:p}),a.add(h.id)}let r=[...i.keys()],s=t.initialSequence,o=typeof s=="string"&&i.has(s),l=o?[s,...r.filter(p=>p!==s)]:r;typeof s=="string"&&s.length>0&&!o&&e.push({code:"UNRESOLVED_INITIAL_SEQUENCE",message:`initialSequence "${s}" matches no task; using declaration order.`});let u=new Set,c=t.uiMetaData?.task;if(Array.isArray(c))for(let p of c){let d=GX(p);d!==void 0&&u.add(d)}return{flowName:typeof t.name=="string"?t.name:"",flowType:typeof t.type=="string"?t.type:"",tasks:i,taskOrder:l,entryTaskId:o?s:void 0,reusableTaskIds:u,warnings:e}}var NX=new Set(["AskForNLUNextIntentAction","WaitForInputAction"]);function UX(t){let e=[],i=[];for(let n of t.taskOrder){let a=t.tasks.get(n);a&&e.push({id:Il(n),kind:"task-start",label:a.name,taskId:n,taskName:a.name,terminal:!1})}for(let{taskId:n,task:a,action:r,actionId:s,handler:o}of TR(t)){let l=r.__type,u=typeof r.name=="string"&&r.name.length>0?r.name:l??s;e.push({id:s,kind:"action",actionType:l,label:u,description:o.describe(r),taskId:n,taskName:a.name,terminal:o.isTerminal(r)}),HX(l)||i.push({code:"UNKNOWN_ACTION_TYPE",message:`Unknown action __type "${l??"(missing)"}" \u2014 handled generically.`,nodeId:s,taskId:n}),NX.has(l??"")&&i.push({code:"UNRESOLVED_INTENT_FANOUT",message:`Intent fan-out for ${s} is not resolved: per-intent routing (nluMetaData) is not modelled.`,nodeId:s,taskId:n});for(let c of o.outputs(r))e.push({id:gy(s,c.outputId),kind:"branch-output",label:c.label,taskId:n,taskName:a.name,terminal:c.terminal}),c.disabled&&i.push({code:"DISABLED_BRANCH",message:`Output ${c.outputId} of ${s} is disabled.`,nodeId:gy(s,c.outputId),taskId:n})}return{nodes:e,warnings:i}}function LX(t){let e=new Map;for(let s of t.nodes.keys())e.set(s,0);let i=new Map,n=[],a=0;for(let s of t.roots){if(e.get(s)!==0)continue;e.set(s,1),i.set(s,a++);let o=[{node:s,index:0}];for(;o.length>0;){let l=o[o.length-1],u=t.adjacency.get(l.node)??[];if(l.indexc.code==="UNRESOLVED_INTENT_FANOUT");return{ok:!0,ir:SX(s,l,e,u),graph:s,warnings:[...e.warnings,...n,...r,...o]}}catch(e){return{ok:!1,error:{code:"INTERNAL",message:e instanceof Error?e.message:String(e)}}}}function WX(t,e){let i=t.find(r=>r.id===e);if(i)return{match:i};let n=e.toLowerCase(),a=t.filter(r=>r.name.toLowerCase()===n);return a.length>1?{ambiguous:a}:a[0]?{match:a[0]}:void 0}var ER=({architectApi:t})=>({config:{description:"Retrieves the intermediate representation (IR) of a Genesys Cloud Architect flow: a flat, ordered list of its actions with the branches connecting them. Use this to understand what an existing flow does. It answers what follows an action, which branch leads where, which actions are unreachable, and how tasks call each other.",annotations:{title:"Flow IR",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:ti.string().min(1).describe("The Genesys Cloud Architect flow ID"),task:ti.string().min(1).optional().describe("Optional. Restrict the returned nodes to a single task, by task id or task name (case-insensitive). Use this to explore a large flow one task at a time. The full task list is always returned, and a node's predecessors may reference nodes in other tasks, which will not appear in the filtered node list.")}},handler:async({flowId:e,task:i})=>{let n;try{n=await t.getFlowLatestconfiguration(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found or not accessible.`}]}}let a=MR(n);if(!a.ok)return{isError:!0,content:[{type:"text",text:`Failed to parse flow "${e}" (${a.error.code}): ${a.error.message}`}]};let r=a.ir;if(typeof i=="string"){let s=WX(r.tasks,i);if(!s){let o=r.tasks.map(l=>l.name).join(", ");return{isError:!0,content:[{type:"text",text:`No task matching "${i}" in flow "${e}". Available tasks: ${o||"(none)"}.`}]}}if("ambiguous"in s){let o=s.ambiguous.map(l=>`"${l.name}" (id: ${l.id})`).join(", ");return{isError:!0,content:[{type:"text",text:`Task name "${i}" is ambiguous in flow "${e}". It matches ${o}. Retry with the task id.`}]}}r={...r,nodes:r.nodes.filter(o=>o.taskId===s.match.id)}}return{content:[{type:"text",text:JSON.stringify({flowId:e,ir:r,warnings:a.warnings})}]}}});var wy=new Map;function BX(t){let{id:e,previousTurn:i,...n}=t;return n}async function kR(t,e,i){let n=[],a=i;for(;n.push(BX(a)),wy.set(e,a.id),a.nextActionType==="NoOp";)a=await t.postTextbotsBotflowsSessionTurns(e,{previousTurn:{id:a.id},inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});let r=a.nextActionType;return(r==="Disconnect"||r==="Exit")&&wy.delete(e),{content:[{type:"text",text:JSON.stringify({sessionId:e,turns:n},null,2)}]}}var qR=({textbotsApi:t})=>({config:{description:"Tests a deployed Genesys Cloud Architect Bot Flow and Digital Bot Flow by simulating a text conversation. To start: provide flowId. To continue: provide the returned sessionId and a message. Turn tracking is managed server-side \u2014 only the sessionId is needed between calls. Returns { sessionId, turns[] } where each turn contains the raw API response (prompts with segments, outputLanguage, nextActionType, and action-specific data like modeConstraints or outputData). Multiple turns are returned when the flow sends consecutive messages (NoOp turns are automatically drained). nextActionType values: WaitForInput (send another message), Disconnect/Exit (conversation ended).",annotations:{title:"Test Bot Flow",readOnlyHint:!1,destructiveHint:!1},inputSchema:{flowId:ti.string().optional().describe("The bot flow ID to test. Required when starting a new session."),sessionId:ti.string().optional().describe("Session ID from a previous call. Required when continuing an existing conversation."),message:ti.string().optional().describe("User message to send to the bot. Required when continuing a session.")}},handler:async({flowId:e,sessionId:i,message:n})=>{try{if(i&&e)return{isError:!0,content:[{type:"text",text:"Provide either flowId (to start) or sessionId (to continue), not both."}]};if(!i&&!e)return{isError:!0,content:[{type:"text",text:"Provide flowId to start a new session or sessionId to continue an existing one."}]};if(i&&!n)return{isError:!0,content:[{type:"text",text:"A message is required when continuing an existing session."}]};if(e){let s=await t.postTextbotsBotflowsSessions({flow:{id:e},externalSessionId:"",inputData:{variables:{}},channel:{inputModes:["Text"],outputModes:["Text"],name:"Messaging",userAgent:{name:"GenesysWebWidget"}},language:""}),o=await t.postTextbotsBotflowsSessionTurns(s.id,{inputEventType:"NoOp",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:""}}]}});return kR(t,s.id,o)}let a=wy.get(i);if(!a)return{isError:!0,content:[{type:"text",text:`No active session found for ID "${i}". It may have expired or already ended. Start a new session with a flowId.`}]};let r=await t.postTextbotsBotflowsSessionTurns(i,{previousTurn:{id:a},inputEventType:"UserInput",inputEventUserInput:{mode:"Text",alternatives:[{transcript:{text:n}}]}});return kR(t,i,r)}catch(a){return{isError:!0,content:[{type:"text",text:`Bot flow test failed: ${a instanceof Error?a.message:JSON.stringify(a)}`}]}}}});var vy=ti.object({GENESYS_REGION:ti.string().min(1),GENESYS_CLIENT_ID:ti.string().min(1),GENESYS_CLIENT_SECRET:ti.string().min(1),DEPLOY_SCRIPT_PATH:ti.string().min(1),PREVENT_LOGIN:ti.enum(["TRUE","FALSE"]).default("FALSE").transform(t=>t==="TRUE")}).safeParse(process.env);if(!vy.success){let t=vy.error.issues.map(e=>e.path[0]).join(` `);console.error(`Missing required environment variables: - ${t}`),process.exit(1)}var Yt=vy.data,zl=new Oc({name:"genesys-cloud-architect",version:"1.0.4"}),zR=new Cd.default.ArchitectApi,_R=PR({architectApi:zR});zl.registerTool("flow_dependencies",_R.config,_R.handler);var HR=ER({architectApi:zR});zl.registerTool("flow_ir",HR.config,HR.handler);var IR=bR({region:Yt.GENESYS_REGION,clientId:Yt.GENESYS_CLIENT_ID,clientSecret:Yt.GENESYS_CLIENT_SECRET,deployScriptPath:Yt.DEPLOY_SCRIPT_PATH});zl.registerTool("deploy_flow",IR.config,IR.handler);var RR=qR({textbotsApi:new Cd.default.TextbotsApi});zl.registerTool("test_bot_flow",RR.config,RR.handler);(async()=>{if(Yt.PREVENT_LOGIN)console.warn("Login for Platform API skipped. Calling tools will result in an auth failure.");else{let e=Cd.default.ApiClient.instance;e.setEnvironment(Yt.GENESYS_REGION),await e.loginClientCredentialsGrant(Yt.GENESYS_CLIENT_ID,Yt.GENESYS_CLIENT_SECRET)}let t=new Tc;await zl.connect(t)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); + ${t}`),process.exit(1)}var Yt=vy.data,zl=new Oc({name:"genesys-cloud-architect",version:"1.0.5"}),zR=new Cd.default.ArchitectApi,_R=PR({architectApi:zR});zl.registerTool("flow_dependencies",_R.config,_R.handler);var HR=ER({architectApi:zR});zl.registerTool("flow_ir",HR.config,HR.handler);var IR=bR({region:Yt.GENESYS_REGION,clientId:Yt.GENESYS_CLIENT_ID,clientSecret:Yt.GENESYS_CLIENT_SECRET,deployScriptPath:Yt.DEPLOY_SCRIPT_PATH});zl.registerTool("deploy_flow",IR.config,IR.handler);var RR=qR({textbotsApi:new Cd.default.TextbotsApi});zl.registerTool("test_bot_flow",RR.config,RR.handler);(async()=>{if(Yt.PREVENT_LOGIN)console.warn("Login for Platform API skipped. Calling tools will result in an auth failure.");else{let e=Cd.default.ApiClient.instance;e.setEnvironment(Yt.GENESYS_REGION),await e.loginClientCredentialsGrant(Yt.GENESYS_CLIENT_ID,Yt.GENESYS_CLIENT_SECRET)}let t=new Tc;await zl.connect(t)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); /*! Bundled license information: mime-db/index.js: